[gs-cvs] rev 6932 - trunk/gs/src

dan at ghostscript.com dan at ghostscript.com
Thu Jul 27 00:06:37 PDT 2006


Author: dan
Date: 2006-07-27 00:06:36 -0700 (Thu, 27 Jul 2006)
New Revision: 6932

Modified:
   trunk/gs/src/iscanbin.c
Log:
Fix for segv in CET files 32-32.ps and 22-11.ps.  Both
files use binary object sequences with an object type of
'user name' however no user names have been defined.
The fix consists of checking for this situation and returning
an e_undefined error.  (The choice of error is because CPSI
also returns a 'undefined' error.


Modified: trunk/gs/src/iscanbin.c
===================================================================
--- trunk/gs/src/iscanbin.c	2006-07-27 01:15:59 UTC (rev 6931)
+++ trunk/gs/src/iscanbin.c	2006-07-27 07:06:36 UTC (rev 6932)
@@ -532,6 +532,8 @@
 		value = sdecodelong(p + 5, num_format);
 		switch (osize) {
 		    case 0:
+			if (user_names_p == NULL)
+			    return_error(e_undefined);
 			code = array_get(imemory, user_names_p, value, op);
 			goto usn;
 		    case 0xffff:



More information about the gs-cvs mailing list