[GRASS-git] [OSGeo/grass] 6ccda3: libraries: Fix multiplications converted to a larg...
Corey White
noreply at github.com
Tue Jul 14 15:14:23 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 6ccda375af353bd4d6f7da5ffffcebac10d1a11b
https://github.com/OSGeo/grass/commit/6ccda375af353bd4d6f7da5ffffcebac10d1a11b
Author: Corey White <smortopahri at gmail.com>
Date: 2026-07-15 (Wed, 15 Jul 2026)
Changed paths:
M lib/cairodriver/draw_bitmap.c
M lib/cairodriver/graph.c
M lib/external/ccmath/hmgen.c
M lib/external/ccmath/unitary.c
M lib/gmath/del2g.c
M lib/gmath/getg.c
M lib/linkm/new.c
M lib/pngdriver/graph_close.c
M lib/pngdriver/graph_set.c
M lib/raster/get_row.c
M lib/raster/put_row.c
M lib/raster3d/cache.c
M lib/raster3d/misc.c
M lib/raster3d/tilewrite.c
M lib/raster3d/volume.c
M lib/segment/address.c
M lib/vector/diglib/allocation.c
Log Message:
-----------
libraries: Fix multiplications converted to a larger type (#7705)
Cast the first operand so that products assigned to or compared with
size_t, ssize_t, long, and off_t values are computed in the wide type
instead of int, which can overflow for large dimensions. This covers
buffer sizes in the png and cairo drivers, gmath filter kernels, the
ccmath calloc calls, linkm chunk allocation, raster row buffers,
raster3d tile and volume sizes, segment addressing, and diglib
reallocation.
Fixes 24 CodeQL cpp/integer-multiplication-cast-to-long alerts.
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list