Skip to content

Fix stack-buffer-overflow in ppdCacheCreateWithPPD()#70

Open
n0y0nD wants to merge 1 commit intoOpenPrinting:masterfrom
n0y0nD:fix-stack-buffer-overflow
Open

Fix stack-buffer-overflow in ppdCacheCreateWithPPD()#70
n0y0nD wants to merge 1 commit intoOpenPrinting:masterfrom
n0y0nD:fix-stack-buffer-overflow

Conversation

@n0y0nD
Copy link
Copy Markdown
Contributor

@n0y0nD n0y0nD commented Apr 10, 2026

Added a check for the return value of pwgFormatSizeName() to avoid continuing with an empty buffer.
Also added the crash PPD file (sbo_test.ppd) and a regression test in testppd.c that opens it and calls ppdCacheCreateWithPPD().
This ensures make check catches the issue if it ever breaks again. All tests are passing.
Fixes #69

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.

stack-buffer-overflow in ppdCacheCreateWithPPD()

1 participant