From 2118711d122aeb170031ab7eb80e5a9269055772 Mon Sep 17 00:00:00 2001 From: Chris Liddell <chris.liddell@artifex.com> Date: Fri, 21 Sep 2018 08:45:35 +0100 Subject: [PATCH] Bug 699802: add object type check for AES key Make sure the key string is a string. --- psi/zfaes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psi/zfaes.c b/psi/zfaes.c index fd1fb82..e626690 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 */ -- 2.9.1