[GRASS-git] [OSGeo/grass-addons] d12aeb: Update main.c (#1778)
Yann Chemin
noreply at github.com
Wed Jul 8 12:40:57 PDT 2026
Branch: refs/heads/grass8
Home: https://github.com/OSGeo/grass-addons
Commit: d12aeb2d5d3e3ca0a9fb4877d1b7e18eb6f0ee59
https://github.com/OSGeo/grass-addons/commit/d12aeb2d5d3e3ca0a9fb4877d1b7e18eb6f0ee59
Author: Yann Chemin <dr.yann.chemin at gmail.com>
Date: 2026-07-08 (Wed, 08 Jul 2026)
Changed paths:
M src/imagery/i.eb.hsebal95/main.c
Log Message:
-----------
Update main.c (#1778)
inrast_ndvi is allocated via Rast_allocate_buf(data_type_ndvi) — sized for the NDVI raster's native type (e.g. 4 bytes/pixel for FCELL). Rast_get_d_row() unconditionally writes DCELL (8 bytes/pixel), overflowing the buffer by ncols × 4 bytes on every call, regardless of pixel values — a heap buffer overflow.
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass-addons/settings/notifications
More information about the grass-commit
mailing list