[GRASS-git] [OSGeo/grass] 5e2fdb: r.lake: Reject seed coordinates on the region edge...
Aditya Shinde
noreply at github.com
Sat Sep 5 13:57:57 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 5e2fdbc33f1868bfe8d8bf01ed77d248db621127
https://github.com/OSGeo/grass/commit/5e2fdbc33f1868bfe8d8bf01ed77d248db621127
Author: Aditya Shinde <adityashinde1525 at gmail.com>
Date: 2026-09-05 (Sat, 05 Sep 2026)
Changed paths:
M raster/r.lake/main.c
M raster/r.lake/tests/r_lake_test.py
Log Message:
-----------
r.lake: Reject seed coordinates on the region edge (#7877)
The bounds check used > instead of >=, so a seed on the southern or
eastern edge gave a row or column index equal to rows or cols. That index
is one past the end of the terrain and water arrays, which caused an out
of bounds read and write, and a crash for the southern edge.
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