Skip to content

Commit

Permalink
Fix some PPD parser issues discovered via fuzzing (Issue #5623, Issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Aug 1, 2019
1 parent dc00a7c commit 8e048e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cgi-bin/admin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down Expand Up @@ -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 :
Expand Down Expand Up @@ -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 :
Expand Down

0 comments on commit 8e048e4

Please sign in to comment.