diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2017-05-26 11:27:44 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2017-05-26 11:53:48 +0100 |
commit | bf949eaff89ac71b30d4a93638716e2c63090b0a (patch) | |
tree | 9a0385e2d6d665e8fca28b46fa7c97c42876f611 | |
parent | d57e9332127baa82fa8083c0927498f412aa48d8 (diff) | |
download | ghostpdl-bf949eaff89ac71b30d4a93638716e2c63090b0a.tar.gz |
Bug 697949: check parameters for .setuseciecolor
-rw-r--r-- | psi/zcolor3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/psi/zcolor3.c b/psi/zcolor3.c index a90d6e645..d1e5d81b8 100644 --- a/psi/zcolor3.c +++ b/psi/zcolor3.c @@ -39,6 +39,7 @@ static int zsetuseciecolor(i_ctx_t * i_ctx_p) { os_ptr op = osp; + check_type(*op, t_boolean); istate->use_cie_color = *op; pop(1); @@ -103,7 +104,7 @@ zsetblackptcomp(i_ctx_t * i_ctx_p) const op_def zcolor3_l3_op_defs[] = { op_def_begin_ll3(), - { "0.setuseciecolor", zsetuseciecolor }, + { "1.setuseciecolor", zsetuseciecolor }, { "0.currentrenderintent", zcurrentrenderingintent }, { "1.setrenderingintent", zsetrenderingintent }, { "2.currentblackptcomp", zcurrentblackptcomp }, |