OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
1.05k stars 187 forks source link

raster-interpreter.c: Fix crash in 'scan_ps()' found by fuzzer #834

Closed zdohnal closed 10 months ago

zdohnal commented 10 months ago

Fuzzer using _cupsRasterExecPS() found a way how to pass NULL into scan_ps(), causing crash - we have to sanitize the argument for NULL to fix it.

Fixes #831

zdohnal commented 10 months ago

Found out that my previous commit broke compilation on Linux if options '-Wall -Werror' are used - fixes are here https://github.com/OpenPrinting/cups/pull/835 and https://github.com/OpenPrinting/cups/pull/836 .