Bug 692129 - Seg. fault with -dDOINTERPOLATE
Summary: Seg. fault with -dDOINTERPOLATE
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: General (show other bugs)
Version: master
Hardware: PC All
: P2 normal
Assignee: Robin Watts
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-07 04:05 UTC by Marcos H. Woehrmann
Modified: 2012-04-12 17:13 UTC (History)
0 users

See Also:
Customer: 243
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos H. Woehrmann 2011-04-07 04:05:54 UTC
The customer reports an error when processing the attached with with 9.x, I'm not able to reproduce the problem, but Ken is.  Here are the options the customer is using:

-q
-dNOPAUSE
-dSAFER
-dBATCH
-dUseCropBox
-dConvertCMYKImagesToRGB=true
-dDOINTERPOLATE
-dTextAlphaBits=4
-dGraphicsAlphaBits=1
-dProcessColorModel=/DeviceRGB
-sDEVICE=png16m
-r100
-sstdout=%stderr
-sOutputFile=-
-dPrinted=false

and Ken's analysis:

For me the file seg faults on page 4 when -dDOINTERPOLATE is true, its in gsalloc.c, i_free_object(), line 779:

   finalize = pstype->finalize;

pstype is 0x00 which doesn't really look good.

Its called from s_IScale_release() :

   gs_free_object(mem, ss->dst, "image_scale dst");

It looks like something has written 0s all over ss->dst. One for Robin ?
Comment 2 Robin Watts 2011-04-08 13:35:47 UTC
I have a simple fix for this, committed as revision 12378.