Bug 691982 - Regression: Error: /typecheck in --run--
Summary: Regression: Error: /typecheck in --run--
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: master
Hardware: PC All
: P1 normal
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-18 15:32 UTC by Marcos H. Woehrmann
Modified: 2011-10-02 02:35 UTC (History)
1 user (show)

See Also:
Customer: 531
Word Size: ---


Attachments
patch (677 bytes, patch)
2011-02-19 07:02 UTC, Alex Cherepanov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos H. Woehrmann 2011-02-18 15:32:05 UTC
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
Comment 2 Marcos H. Woehrmann 2011-02-18 15:34:37 UTC
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
Comment 3 Alex Cherepanov 2011-02-19 07:02:25 UTC
Created attachment 7261 [details]
patch

Add a missing check for null during PDF resource enumeration.
Comment 4 Alex Cherepanov 2011-02-19 07:07:32 UTC
The patch has been committed as a rev. 12174.
Comment 5 Customer 531 2011-02-21 13:35:26 UTC
Thank you. This patch works appropriately.
Comment 6 Ray Johnston 2011-02-22 01:50:56 UTC
Corrected customer # entry