Bug 705863

Summary: Segfault with x11cmyk x11gray2 x11gray4
Product: Ghostscript Reporter: M.J.G. <mjg>
Component: X Display DriverAssignee: Chris Liddell (chrisl) <chris.liddell>
Status: RESOLVED FIXED    
Severity: normal CC: chris.liddell
Priority: P4    
Version: 9.56.1   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

Description M.J.G. 2022-09-13 10:03:17 UTC
Apparantly, the fix for bug #703013 may have broken some devices, in particular x11cmyk x11gray2 x11gray4 give a seg fault when doing (i= one of those, others work):

gs  -dBATCH -dNOPAUSE -sDEVICE=$i -sOutputFile=/dev/null dummy.pdf >/dev/null

I bisected this to commit 270438bfda60.

Maybe the comment (above the changed lines) was right after all, and the real fix should be in get_params wrapper or such?
Comment 1 Chris Liddell (chrisl) 2022-10-05 09:09:02 UTC
Fixed in:

https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=90072538c2fb
Comment 2 M.J.G. 2022-10-05 09:43:23 UTC
(In reply to Chris Liddell (chrisl) from comment #1)
> Fixed in:
> 
> https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=90072538c2fb

Thanks a bunch for the fix!

Confirmed to work as backport on 9.56.1 also (as expected).