]> git.ipfire.org Git - thirdparty/cups.git/commit
raster-interpret.c: Fix CVE-2023-4504
authorZdenek Dohnal <zdohnal@redhat.com>
Fri, 1 Sep 2023 14:47:29 +0000 (16:47 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Fri, 1 Sep 2023 14:47:29 +0000 (16:47 +0200)
commita9a7daa77699bd58001c25df8a61a8029a217ddf
treedb4c0bf479801f3de24e94427b2f3a1b0b5bc117
parent9d576996feb1010f4e9883c7e620186c3b17864c
raster-interpret.c: Fix CVE-2023-4504

We didn't check for end of buffer if it looks there is an escaped
character - check for NULL terminator there and if found, return NULL
as return value and in `ptr`, because a lone backslash is not
a valid PostScript character.
cups/raster-interpret.c