summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2018-08-21 20:36:52 +0100
committerChris Liddell <chris.liddell@artifex.com>2018-08-23 10:23:18 +0100
commit0edd3d6c634a577db261615a9dc2719bca7f6e01 (patch)
tree45efcfce94529dd425e1e9efc1f40298db65ac19
parenta054156d425b4dbdaaa9fda4b5f1182b27598c2b (diff)
Bug 699659: Don't just assume an object is a t_(a)struct
-rw-r--r--psi/ztype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psi/ztype.c b/psi/ztype.c
index ad248d96c..830795631 100644
--- a/psi/ztype.c
+++ b/psi/ztype.c
@@ -76,7 +76,7 @@ ztype(i_ctx_t *i_ctx_p)
76 /* Must be either a stack underflow or a t_[a]struct. */ 76 /* Must be either a stack underflow or a t_[a]struct. */
77 check_op(2); 77 check_op(2);
78 { /* Get the type name from the structure. */ 78 { /* Get the type name from the structure. */
79 if (op[-1].value.pstruct != 0x00) { 79 if ((r_has_type(&op[-1], t_struct) || r_has_type(&op[-1], t_astruct)) && op[-1].value.pstruct != 0x00) {
80 const char *sname = 80 const char *sname =
81 gs_struct_type_name_string(gs_object_type(imemory, 81 gs_struct_type_name_string(gs_object_type(imemory,
82 op[-1].value.pstruct)); 82 op[-1].value.pstruct));