]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
Fix coverity issue 6.
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 15 Feb 2023 17:58:08 +0000 (18:58 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 15 Feb 2023 17:58:08 +0000 (18:58 +0100)
Ensure that PrinterPlanes is not zero

filter/rastertoescpx.c

index ccd599ea590ad605e64b0ed3ab80250eea38c5e8..c28eba0419568bcd51337320af23a7ac2711c356 100644 (file)
@@ -335,6 +335,9 @@ StartPage(ppd_file_t         *ppd,  // I - PPD file
         DitherLuts[6] = ppdLutLoad(ppd, colormodel, header->MediaType,
                                    resolution, "LightBlack", logfunc, ld);
         break;
+    case 0 : // ERROR
+        fputs("ERROR: Unable to allocate band list\n", stderr);
+        exit(1);
   }
 
   for (plane = 0; plane < PrinterPlanes; plane ++)