]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
1.x: Fix NULL-pointer dereference when parsing %%PDFTOPDF comments (#644) 1.x
authorGünther Noack <gnoack3000@gmail.com>
Thu, 10 Jul 2025 20:31:02 +0000 (22:31 +0200)
committerGitHub <noreply@github.com>
Thu, 10 Jul 2025 20:31:02 +0000 (22:31 +0200)
commitc3d2f07399da93f2b5308f499b1ddc5504d087ce
tree80ac716e6b58e42c67ea3a975d1daa42e6b5b57d
parentaea8d0db017e495b0204433ebdb0e86b4871094c
1.x: Fix NULL-pointer dereference when parsing %%PDFTOPDF comments (#644)

* Fix null pointer dereference in %%PDFTOPDF* parsers

* %%PDFTOPDFCollate comment parsing: Increment p where needed

Without this, if strchr succeeds, p will point to a ':' character.
*p will therefore never be a whitespace in the subsequent loop,
or compare successfully against the "true" string.
filter/gstoraster.c
filter/mupdftoraster.c
filter/pdftops.c
filter/pdftoraster.cxx