[gs-cvs] rev 8428 - trunk/gs/src
alexcher at ghostscript.com
alexcher at ghostscript.com
Sat Dec 8 22:33:00 PST 2007
Author: alexcher
Date: 2007-12-08 22:33:00 -0800 (Sat, 08 Dec 2007)
New Revision: 8428
Modified:
trunk/gs/src/seexec.c
Log:
Use a smaller buffer for eexecDecode filter to avoid consumption of the data
that follow a short (and incorrect) run of 0's in PS files generated by
Adobe Acrobat from PDF files with usage restrictions. Bug 689577
DETAILS:
The buffer size of 132 has been selected from a middle of small window that
fixes the bug but doesn't cause regession in comparefiles/fonttest.pdf.
Detection of EOF after seing a run of 0's is worth to note as an alternative.
DIFFERENCES:
None.
Modified: trunk/gs/src/seexec.c
===================================================================
--- trunk/gs/src/seexec.c 2007-12-08 13:57:53 UTC (rev 8427)
+++ trunk/gs/src/seexec.c 2007-12-09 06:33:00 UTC (rev 8428)
@@ -215,8 +215,10 @@
* so that it will stay under the limit even after adding min_in_size
* for a subsequent filter in a pipeline. Note that we have to specify
* a size of at least 128 so that filter_read won't round it up.
+ * The value of 132 is samll enough for the sample file of the bug 689577 but
+ * still sufficient for comparefiles/fonttest.pdf .
*/
const stream_template s_exD_template = {
- &st_exD_state, s_exD_init, s_exD_process, 8, 200,
+ &st_exD_state, s_exD_init, s_exD_process, 8, 132,
NULL, s_exD_set_defaults
};
More information about the gs-cvs
mailing list