summaryrefslogtreecommitdiff
path: root/cgi-bin
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-08-01 14:02:04 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-08-01 14:02:04 -0400
commit8e048e4d39bee9d6b0849d5804a625a064957459 (patch)
tree1d346c7441dda97751afd9f7cc641d41555d6f39 /cgi-bin
parentdc00a7c3adc459ee468ec9e1c52679b83e4a4c9d (diff)
downloadcups-8e048e4d39bee9d6b0849d5804a625a064957459.tar.gz
Fix some PPD parser issues discovered via fuzzing (Issue #5623, Issue #5624)
Diffstat (limited to 'cgi-bin')
-rw-r--r--cgi-bin/admin.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cgi-bin/admin.c b/cgi-bin/admin.c
index f8c57639f..f087809f7 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 :