From: zdohnal Date: Thu, 4 Jan 2024 09:53:05 +0000 (+0100) Subject: ppd-emit.c: Fix SEGV in 'ppdEmitString()' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a834c30dfc044e8b4dcf3e576cb1f196bced3f6;p=thirdparty%2Fcups.git ppd-emit.c: Fix SEGV in 'ppdEmitString()' When using testppd.c as a harness, a fuzzer found a way to call ppdPageSize() with NULL return value. This caused a segmentation fault because the size structure, which is used by values[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 --- 0a834c30dfc044e8b4dcf3e576cb1f196bced3f6