Bug 699656

Summary: LockDistillerParams boolean missing type checks
Product: Ghostscript Reporter: Tavis Ormandy <taviso>
Component: GeneralAssignee: Default assignee <ghostpdl-bugs>
Status: NOTIFIED FIXED QA Contact: Bug traffic <tech>
Severity: critical    
Priority: P2 CC: dkaspar, dr, jsmeix, scorneli, till.kamppeter
Version: unspecified   
Hardware: PC   
OS: Linux   
Customer: 501,641 Word Size: ---

Description Tavis Ormandy 2018-08-21 17:57:36 UTC
The LockDistillerParams boolean isn't type checked, so nice easy type confusion. Repro:

$ gs -q -sDEVICE=ppmraw -dSAFER
GS><< /LockDistillerParams 16#4141414141414141 >> .setdistillerparams
Segmentation fault
Comment 1 Chris Liddell (chrisl) 2018-08-23 11:42:20 UTC
Fixed in:

http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=c3476dde
Comment 2 Chris Liddell (chrisl) 2018-08-23 11:50:55 UTC
*** Bug 699663 has been marked as a duplicate of this bug. ***