Blame SOURCES/cups-ppdopen-heap-overflow.patch

1481dd
diff --git a/cups/ppd.c b/cups/ppd.c
1481dd
index ff52df2e..199cf034 100644
1481dd
--- a/cups/ppd.c
1481dd
+++ b/cups/ppd.c
1481dd
@@ -1719,8 +1719,7 @@ _ppdOpen(
1481dd
                      constraint->choice1, constraint->option2,
1481dd
 		     constraint->choice2))
1481dd
       {
1481dd
-        case 0 : /* Error */
1481dd
-	case 1 : /* Error */
1481dd
+        default : /* Error */
1481dd
 	    pg->ppd_status = PPD_BAD_UI_CONSTRAINTS;
1481dd
 	    goto error;
1481dd
 
1481dd
diff --git a/ppdc/ppdc-source.cxx b/ppdc/ppdc-source.cxx
1481dd
index c25d4966..236c00db 100644
1481dd
--- a/ppdc/ppdc-source.cxx
1481dd
+++ b/ppdc/ppdc-source.cxx
1481dd
@@ -1743,15 +1743,17 @@ ppdcSource::get_resolution(ppdcFile *fp)// I - File to read
1481dd
 
1481dd
   switch (sscanf(name, "%dx%d", &xdpi, &ydpi))
1481dd
   {
1481dd
-    case 0 :
1481dd
-        _cupsLangPrintf(stderr,
1481dd
-	                _("ppdc: Bad resolution name \"%s\" on line %d of "
1481dd
-			  "%s."), name, fp->line, fp->filename);
1481dd
-        break;
1481dd
     case 1 :
1481dd
         ydpi = xdpi;
1481dd
 	break;
1481dd
-  }
1481dd
+    case 2 :
1481dd
+        break;
1481dd
+    default :
1481dd
+        _cupsLangPrintf(stderr,
1481dd
+                  _("ppdc: Bad resolution name \"%s\" on line %d of "
1481dd
+        "%s."), name, fp->line, fp->filename);
1481dd
+        break;
1481dd
+}
1481dd
 
1481dd
   // Create the necessary PS commands...
1481dd
   snprintf(command, sizeof(command),