[gs-bugs] [Bug 690339] New: gdevprn uses "resize" on page buffer,
doubles memory requirement
bugs.ghostscript.com-bugzilla-daemon at ghostscript.com
bugs.ghostscript.com-bugzilla-daemon at ghostscript.com
Thu Mar 19 07:10:30 PDT 2009
http://bugs.ghostscript.com/show_bug.cgi?id=690339
Summary: gdevprn uses "resize" on page buffer, doubles memory
requirement
Product: Ghostscript
Version: HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P4
Component: Graphics Library
AssignedTo: ray.johnston at artifex.com
ReportedBy: ray.johnston at artifex.com
QAContact: gs-bugs at ghostscript.com
The gdev_prn_allocate, when it needs to change the page size (such as from
letter to A4) uses 'gs_resize_object' to adjust the size of 'buffer_memory'.
Since resize_object must copy the old contents of buffer_memory to the new
buffer area, the results in BOTH page buffers being allocated, as well as
performing a copy of data that we are going to discard anyway.
This is a reminder bug, to fix this to simply free then allocate instead.
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the gs-bugs
mailing list