summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2018-09-21 08:45:35 +0100
committerChris Liddell <chris.liddell@artifex.com>2018-09-21 08:47:01 +0100
commit2118711d122aeb170031ab7eb80e5a9269055772 (patch)
treee863c6809c8cb20fc0298c705e2643147cc5610c
parent8ed08cb9904bc718ad57e0b4884a81a9227ce3ea (diff)
downloadghostpdl-2118711d122aeb170031ab7eb80e5a9269055772.tar.gz
Bug 699802: add object type check for AES key
Make sure the key string is a string.
-rw-r--r--psi/zfaes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psi/zfaes.c b/psi/zfaes.c
index fd1fb8235..e626690b8 100644
--- a/psi/zfaes.c
+++ b/psi/zfaes.c
@@ -45,7 +45,7 @@ z_aes_d(i_ctx_t * i_ctx_p)
check_dict_read(*op);
if (dict_find_string(op, "Key", &sop) <= 0)
return_error(gs_error_rangecheck);
-
+ check_type(*sop, t_string);
s_aes_set_key(&state, sop->value.const_bytes, r_size(sop));
/* extract the padding flag, which defaults to true for compatibility */