Skip to content

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

Merged
zdohnal merged 1 commit intoOpenPrinting:masterfrom
zdohnal:fix-ps-crash-from-fuzzer
Nov 27, 2023
Merged

raster-interpreter.c: Fix crash in 'scan_ps()' found by fuzzer#834
zdohnal merged 1 commit intoOpenPrinting:masterfrom
zdohnal:fix-ps-crash-from-fuzzer

Conversation

@zdohnal
Copy link
Member

@zdohnal zdohnal commented Nov 24, 2023

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

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 OpenPrinting#831
Copy link
Member

@michaelrsweet michaelrsweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@zdohnal
Copy link
Member Author

zdohnal commented Nov 27, 2023

Found out that my previous commit broke compilation on Linux if options '-Wall -Werror' are used - fixes are here #835 and #836 .

@zdohnal zdohnal merged commit 59dbbdb into OpenPrinting:master Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Segmentation fault with raster-interpret.c:1055

2 participants