[gs-cvs] rev 7863 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Tue Apr 17 11:39:40 PDT 2007
Author: leonardo
Date: 2007-04-17 11:39:39 -0700 (Tue, 17 Apr 2007)
New Revision: 7863
Modified:
trunk/gs/src/gxacpath.c
Log:
Fix : A bug in device_cpath_accum_enum_ptrs.
DETAILS :
Bug 689177 Another heap corruption (issue 2).
gx_device_clip::list.head was never enumerated.
The bug was intriduced in rev 7120 (5 months, 3 weeks ago) by leonardo.
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/gxacpath.c
===================================================================
--- trunk/gs/src/gxacpath.c 2007-04-17 17:57:43 UTC (rev 7862)
+++ trunk/gs/src/gxacpath.c 2007-04-17 18:39:39 UTC (rev 7863)
@@ -37,7 +37,7 @@
extern_st(st_clip_list);
private
ENUM_PTRS_WITH(device_cpath_accum_enum_ptrs, gx_device_cpath_accum *pdev)
- if (index > st_device_max_ptrs)
+ if (index >= st_device_max_ptrs)
return ENUM_USING(st_clip_list, &pdev->list, sizeof(gx_clip_list), index - st_device_max_ptrs);
ENUM_PREFIX(st_device, 0);
ENUM_PTRS_END
More information about the gs-cvs
mailing list