]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix some PPD parser issues discovered via fuzzing (Issue #5623, Issue #5624)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 1 Aug 2019 18:02:04 +0000 (14:02 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 1 Aug 2019 18:02:04 +0000 (14:02 -0400)
cgi-bin/admin.c

index f8c57639f87696e9aa0dd086ac2f65a8f2bb7a71..f087809f7cf1e3d6298cf84daed90fb844869f0e 100644 (file)
@@ -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 :