[gs-cvs] rev 9392 - trunk/gs/base
ken at ghostscript.com
ken at ghostscript.com
Sat Jan 24 01:05:50 PST 2009
Author: ken
Date: 2009-01-24 01:05:50 -0800 (Sat, 24 Jan 2009)
New Revision: 9392
Modified:
trunk/gs/base/gdevpdfd.c
Log:
Add a check when comparing clip paths to see if both are NULL. Silences a Coverity warning and one day might conceivably prevent a crash.
Modified: trunk/gs/base/gdevpdfd.c
===================================================================
--- trunk/gs/base/gdevpdfd.c 2009-01-23 22:53:02 UTC (rev 9391)
+++ trunk/gs/base/gdevpdfd.c 2009-01-24 09:05:50 UTC (rev 9392)
@@ -232,6 +232,9 @@
if ((pdev->clip_path != 0) != (pcpath != 0))
return 0;
+ /* Both clip paths are empty, so the same */
+ if (pdev->clip_path == 0)
+ return 1;
code = gx_path_enum_init(&penum, pdev->clip_path);
if (code < 0)
return code;
More information about the gs-cvs
mailing list