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

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