From: Michael R Sweet Date: Thu, 1 Aug 2019 18:02:04 +0000 (-0400) Subject: Fix some PPD parser issues discovered via fuzzing (Issue #5623, Issue #5624) X-Git-Tag: v2.3.0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e048e4d39bee9d6b0849d5804a625a064957459;p=thirdparty%2Fcups.git Fix some PPD parser issues discovered via fuzzing (Issue #5623, Issue #5624) --- diff --git a/cgi-bin/admin.c b/cgi-bin/admin.c index f8c57639f8..f087809f7c 100644 --- a/cgi-bin/admin.c +++ b/cgi-bin/admin.c @@ -2929,6 +2929,9 @@ do_set_options(http_t *http, /* I - HTTP connection */ switch (cparam->type) { + case PPD_CUSTOM_UNKNOWN : + break; + case PPD_CUSTOM_POINTS : if (!_cups_strncasecmp(option->defchoice, "Custom.", 7)) { @@ -3528,6 +3531,9 @@ get_option_value( switch (cparam->type) { + case PPD_CUSTOM_UNKNOWN : + break; + case PPD_CUSTOM_CURVE : case PPD_CUSTOM_INVCURVE : case PPD_CUSTOM_REAL : @@ -3606,6 +3612,9 @@ get_option_value( switch (cparam->type) { + case PPD_CUSTOM_UNKNOWN : + break; + case PPD_CUSTOM_CURVE : case PPD_CUSTOM_INVCURVE : case PPD_CUSTOM_REAL :