]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix CodeQL warnings.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Sat, 17 Oct 2020 21:01:10 +0000 (17:01 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Sat, 17 Oct 2020 21:01:10 +0000 (17:01 -0400)
CHANGES-OPENPRINTING.md
filter/rastertoepson.c
filter/rastertohp.c

index 0bd7874854eb907a7fb88d3c24b6624ef042b03a..b74898bb3442c442ce2117e82446a28f48f2c497 100644 (file)
@@ -13,7 +13,7 @@ Changes in CUPS v2.3.3op1
 - Updated ippfind to honor `SKIP-XXX` directives with `PAUSE`.
 - Fixed IPP Everywhere v1.1 conformance issues in ippeveprinter.
 - Fixed DNS-SD name collision support in ippeveprinter.
-- Fixed compiler warnings.
+- Fixed compiler and code analyzer warnings.
 - Fixed TLS support on Windows.
 - Fixed ippfind sub-type searches with Avahi.
 - Fixed the default hostname used by ippeveprinter on macOS.
index 4522e6b48083957eaa4c5253e169f178ae01c6a5..be3bd5e0e16db95845a945f78313b49592390637 100644 (file)
@@ -955,7 +955,7 @@ OutputRows(
   * Clear the buffer...
   */
 
-  memset(LineBuffers[row], 0, header->cupsWidth * DotBytes);
+  memset(LineBuffers[row], 0, (size_t)header->cupsWidth * (size_t)DotBytes);
 }
 
 
index 0d76c42a28e79416e7ddcb4351c51034e27bca0d..409b1c935923f309b6f0a10959ef8ee149e67dd9 100644 (file)
@@ -332,7 +332,7 @@ StartPage(ppd_file_t         *ppd,  /* I - PPD file */
     Planes[plane] = Planes[0] + plane * header->cupsBytesPerLine / NumPlanes;
 
   if (ColorBits > 1)
-    BitBuffer = malloc(ColorBits * ((header->cupsWidth + 7) / 8));
+    BitBuffer = malloc((size_t)ColorBits * (((size_t)header->cupsWidth + 7) / 8));
   else
     BitBuffer = NULL;