Bug 687702, gs8.15 setpagedevice /invalidaccess
Alex Cherepanov <[email protected]> Tue, 30 Dec 2008 07:30:55 -0500
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------030300060706080200060305
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Set local allocation mode during execution of setpagedevice to
keep composite objects allocated by setpagedevice in local memory
and avoid memory mismatch errors.
DETAILS:
Page device is a subject of save and restore, 'true setglobal
currentpagedevice gcheck ==' is false on Distiller and Ghostscript,
'true setglobal gstate' fails on both Distiller and Ghostscript.
So there's no reasons to have parts of the page device objects
in the global memory.
DIFFERENCES:
None. There's no raster or stdout differences on comparefiles oor
stdout differences on CET.
--------------030300060706080200060305
Content-Type: text/plain;
name="687702.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="687702.diff"
Index: gs/Resource/Init/gs_setpd.ps
===================================================================
--- gs/Resource/Init/gs_setpd.ps (revision 9301)
+++ gs/Resource/Init/gs_setpd.ps (working copy)
@@ -654,6 +654,7 @@
{ % We mustn't pop the argument until the very end,
% so that the pseudo-operator machinery can restore the stack
% if an error occurs.
+ currentglobal //false setglobal exch
mark 1 index currentpagedevice
% Check whether we are changing OutputDevice;
@@ -876,6 +877,7 @@
} {
.postinstall
} ifelse
+ setglobal
} odef
% We break out the code after calling the Install procedure into a
--------------030300060706080200060305
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
gs-code-review mailing list
[email protected]
http://www.ghostscript.com/mailman/listinfo/gs-code-review
--------------030300060706080200060305--