[GRASS-git] [OSGeo/grass] 399640: lib/raster: Add larger buffers, error messages to ...
Vaclav Petras
noreply at github.com
Thu Sep 11 10:02:30 PDT 2025
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 3996400af39486dd5ed438a6c509ce5ed7381d9b
https://github.com/OSGeo/grass/commit/3996400af39486dd5ed438a6c509ce5ed7381d9b
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2025-09-11 (Thu, 11 Sep 2025)
Changed paths:
M lib/raster/reclass.c
M lib/raster/tests/lib_raster_reclass_test.py
Log Message:
-----------
lib/raster: Add larger buffers, error messages to reclass header reader (#6341)
This increases the size of buffer the reclass header reader code (reading header of the header file) uses for reading raster and mapset names. It also adds an additional check for reading the whole line and errors if not read. A message can now be optionally reported for each of the already handled error states.
The maximum length of files is now checked by a test which fails with the original buffer size combined with both the original code and the new error handling code, but the individual error states are not tested.
Using 50 as the name length on Windows to avoid 'MAPSET m... not found at' error from r.mapcalc call which occurs with length 255.
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