From: Chris Liddell Date: Tue, 21 Aug 2018 19:36:52 +0000 (+0100) Subject: Bug 699659: Don't just assume an object is a t_(a)struct X-Git-Tag: ghostpdl-9.24rc1~20 X-Git-Url: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=0edd3d6c Bug 699659: Don't just assume an object is a t_(a)struct --- diff --git a/psi/ztype.c b/psi/ztype.c index ad248d9..8307956 100644 --- a/psi/ztype.c +++ b/psi/ztype.c @@ -76,7 +76,7 @@ ztype(i_ctx_t *i_ctx_p) /* Must be either a stack underflow or a t_[a]struct. */ check_op(2); { /* Get the type name from the structure. */ - if (op[-1].value.pstruct != 0x00) { + if ((r_has_type(&op[-1], t_struct) || r_has_type(&op[-1], t_astruct)) && op[-1].value.pstruct != 0x00) { const char *sname = gs_struct_type_name_string(gs_object_type(imemory, op[-1].value.pstruct));