diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-08-01 14:02:04 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-08-01 14:02:04 -0400 |
commit | 8e048e4d39bee9d6b0849d5804a625a064957459 (patch) | |
tree | 1d346c7441dda97751afd9f7cc641d41555d6f39 /cgi-bin | |
parent | dc00a7c3adc459ee468ec9e1c52679b83e4a4c9d (diff) | |
download | cups-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.c | 9 |
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 : |