Closed Drawishe closed 9 months ago
Note to myself - push it into libppd once merged.
Tests are failing on the similar place as before, so it looks ok to me.
@Drawishe thank you for the fix!
One late note - it would be great if you squashed the commits next time if possible, it gives cleaner git history.
@zdohnal did you really mean "git stash"?
@jsmeix thanks Johannes, it was really "squash"....
When using
testppd.c
as a harness, a fuzzer found a way to callppdPageSize()
with NULL return value. This caused a segmentation fault because the size structure, which is used byvalues[pos]
, was assigned a NULL value. To avoid this, we need to add a NULL value check for the size structure, free allocated memory, and return NULL.Fixes #849