From 2c8c60510b1641da363bf0c26ad84f8359528719 Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 30 Sep 2024 08:04:03 +0100 Subject: [PATCH] plot/plotRutils.c: Multiplication result converted to larger type Fix code scanning alert no. 56: Multiplication result converted to larger type (#67) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- plot/plotRutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot/plotRutils.c b/plot/plotRutils.c index 35fcce50..ec0e2485 100644 --- a/plot/plotRutils.c +++ b/plot/plotRutils.c @@ -231,7 +231,7 @@ PlotClearRaster(raster, area) if (area == NULL) { bzero((char *) raster->ras_bits, - raster->ras_bytesPerLine * raster->ras_height); + (size_t)raster->ras_bytesPerLine * raster->ras_height); return; }