The customer reports I've verified that the attached PDF file generates an "Error: /typecheck in --run-- " when read by Ghostscript 9.01. Ghostscript 8.54 reads the file; the revision responsible for the regression is: r7795 | tim | 2007-03-23 06:56:11 -0700 (Fri, 23 Mar 2007) | 1 line Custom color hooks code merge The command line I'm using for testing: bin/gs -sDEVICE=ppmraw -o test.ppm ./AC2_0_U4_805_D1.pdf
Not sure that it's informative, but here's the tail of the PDFDEBUG output: . . . %Resolving: [753 0] << /Type /XObject /Subtype /Form /FormType 1 /BBox [ 1869.81201 1119.93201 1891.922 1143.74402 ] /Resources << /ProcSet [ /PDF /Text ] /Font << /HelvBld 752 0 R >> >> /Matrix [ 1 0 0 1 -1869.81201 -1119.93201 ] /Length 109 >> stream %FilePosition: 607459 endobj %Resolving: [1062 0] %Resolving: [1282 0] %Resolving: [1483 0] %Resolving: [1720 0] %Resolving: [589 0] %Resolving: [783 0] << /Type /XObject /Subtype /Form /FormType 1 /BBox [ 1522.05798 1177.84 1534.68896 1192.349 ] /Resources << /ProcSet [ /PDF ] >> /Matrix [ 0.999999881 0 0 0.999999881 -1522.05798 -1177.84 ] /Length 64 >> stream %FilePosition: 614439 endobj %Resolving: [748 0] %Resolving: [1338 0] %Resolving: [1530 0] %Resolving: [1777 0] %Resolving: [650 0] %Resolving: [912 0] %Resolving: [1179 0] %Resolving: [1382 0] %Resolving: [1582 0] %Resolving: [1839 0] Error: /typecheck in --run-- Operand stack: --dict:7/7(L)-- --dict:52/52(ro)(L)-- PageSpotColors --dict:7/7(L)-- --dict:0/0(L)-- --dict:510/576(L)-- --nostringval-- --nostringval-- Subtype Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %loop_continue --nostringval-- --dict:2183/2183(L)-- --nostringval-- 2016 %dict_continue --nostringval-- Dictionary stack: --dict:1158/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:82/200(L)-- --dict:108/127(ro)(G)-- --dict:296/300(ro)(G)-- --dict:22/30(L)-- --dict:3/6(L)-- Current allocation mode is local Last OS error: 2 GPL Ghostscript SVN PRE-RELEASE 9.02: Unrecoverable error, exit code 1
Created attachment 7261 [details] patch Add a missing check for null during PDF resource enumeration.
The patch has been committed as a rev. 12174.
Thank you. This patch works appropriately.
Corrected customer # entry