[GRASS-git] [OSGeo/grass] 30cdc6: lib/raster: guard compressed row memcpy size (#8015)
Nicklas Larsson
noreply at github.com
Sun Oct 11 03:32:47 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 30cdc69283276cb947d897fae5e6f256bdad05b3
https://github.com/OSGeo/grass/commit/30cdc69283276cb947d897fae5e6f256bdad05b3
Author: Nicklas Larsson <n_larsson at yahoo.com>
Date: 2026-10-11 (Sun, 11 Oct 2026)
Changed paths:
M lib/raster/get_row.c
Log Message:
-----------
lib/raster: guard compressed row memcpy size (#8015)
* grass/raster: guard compressed row memcpy size
Addresses CID 1687668 introduced by 6e39994ed822ca88e36dc49bd9de15556c3d8efd
* check 'n > fcb->nbytes', according to review suggestion
The per-cell byte count is read from the file and must not exceed
the bytes-per-cell the data buffer was allocated for (fcb->nbytes
from the map header); a larger value indicates a corrupted file and
would otherwise overflow data_buf below.
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