Summary: | wrong code in combine escapes across non-small block of input. | ||
---|---|---|---|
Product: | GhostPCL | Reporter: | Hin-Tak Leung <htl10> |
Component: | PCL interpreter | Assignee: | Henry Stiles <henry.stiles> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | unspecified | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Bug Depends on: | |||
Bug Blocks: | 695047 | ||
Attachments: |
patch, to make it possible to combine escapes across planes of raster.
better patch PCL short hand improvement |
Description
Hin-Tak Leung
2014-02-17 14:48:04 UTC
Comment on attachment 10707 [details]
patch, to make it possible to combine escapes across planes of raster.
correct mime type.
The patch causes about 1/4 of the pcl files in cluster tests to behave differently, so it is not quite correct. One such file is tools/owl.pcl . Created attachment 10708 [details]
better patch
better patch. cluster tested & no difference.
Created attachment 10744 [details]
PCL short hand improvement
Thank for looking at this Hin-Tak, certainly worth a "bounty". I think this patch is a little better though, simpler at least, have a review, I don't know if it addresses all the files you've encountered, it does parse tiger.pjl.
(In reply to comment #4) > Created attachment 10744 [details] > PCL short hand improvement > > Thank for looking at this Hin-Tak, certainly worth a "bounty". I think this > patch is a little better though, simpler at least, have a review, I don't > know if it addresses all the files you've encountered, it does parse > tiger.pjl. I think it is mostly algorithmic equivalent, except for two things - the gs_free_object() on data on heap, and the 'param_init(); continue;' vs break part. 'param_init(); continue;' goes back to 'while (p < rlimit)', while 'break' means processes the part after switch() {}. I don't think I understand that code well enough, but I think during the earlier testing I experienced some problems dropping down to the part after switch()? You can always put a 'bountiable' in :-). Go ahead and claim a bounty on this. I review all the "bounties" and I'll okay it. The patch was committed: commit ee30f349671e3a23d666615f1648eab4a5290b4c Author: Henry Stiles <henry.stiles@artifex.com> Date: Tue Mar 11 09:58:31 2014 -0600 Abbreviated escape sequence improvement. Abbreviated escape sequences were not handled properly with commands that hold arbitrary amounts of data, like raster and font related commands. PCL shorthand is rarely used in this circumstance but it is legal. Thanks to Hin-Tak for the discovery and analysis of this problem. I assumed Henry meant to close this? It is rare enough that the memory leak is probably not important, and if I see any issue with break vs continue I'd either reopen or file new. |