Bug 692298 - Abort : "gswin32.exe has stopped working"
Summary: Abort : "gswin32.exe has stopped working"
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: 9.02
Hardware: PC Windows Vista
: P4 critical
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-23 13:19 UTC by Harry McKame
Modified: 2011-06-26 23:05 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
pdf aborts gswin32.exe (284.02 KB, application/download)
2011-06-23 13:19 UTC, Harry McKame
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harry McKame 2011-06-23 13:19:52 UTC
Created attachment 7606 [details]
pdf aborts gswin32.exe

The attached pdf causes gswin32.exe to abort.

The call we are using is :

"C:\Program Files\Ghostscript\gs9.02\bin\gswin32.exe" "-IC:\Program Files\Ghostscript\gs9.02\lib;C:\Program Files\Ghostscript\fonts" -dNOPAUSE -dBATCH -dSAFER -sDEVICE=jpeg -dEPSCrop -f -q -dTextAlphaBits=4 -dUseCropBox -dDOINTERPOLATE -dDisableFAPI -sOutputFile="%%d.jpg" "abort.pdf"

The abort does not happen if "-dDOINTERPOLATE" is omitted.
Comment 1 Alex Cherepanov 2011-06-26 23:05:03 UTC
The problem is already fixed in the development version by the following
commit:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=507cbee1403b20b2c3fec692f746f41d9d985566

commit 507cbee1403b20b2c3fec692f746f41d9d985566
Author: Robin Watts <robin.watts@artifex.com>
Date:   Fri Apr 8 13:34:53 2011 +0000

Fix Bug 692129. If an image is scaled to zero height and interpolation
is on, we end up mallocing a zero byte buffer and then overrunning it.
    
The fix is to detect this scaling, and still allocate a 1 pixel high
buffer.