Skip to content

Commit

Permalink
Fix CodeQL warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Oct 17, 2020
1 parent 29598be commit e8ba255
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES-OPENPRINTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion filter/rastertoepson.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down
2 changes: 1 addition & 1 deletion filter/rastertohp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e8ba255

Please sign in to comment.