[GRASS-git] [OSGeo/grass] e50e16: raster: Fix three single-alert CodeQL findings (#7...

Corey White noreply at github.com
Wed Jul 15 07:14:37 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: e50e16c4b2c730c916fc4342b4966cd6d27ddb2c
      https://github.com/OSGeo/grass/commit/e50e16c4b2c730c916fc4342b4966cd6d27ddb2c
  Author: Corey White <smortopahri at gmail.com>
  Date:   2026-07-15 (Wed, 15 Jul 2026)

  Changed paths:
    M raster/r.in.gdal/main.c
    M raster/r.viewshed/grass.cpp
    M raster/r.watershed/ram/init_vars.c

  Log Message:
  -----------
  raster: Fix three single-alert CodeQL findings (#7702)

r.watershed(ram): checking sscanf against 0 misses the EOF return, so
use != 1 as the seg variant already does. 
r.viewshed: bound the inner
column loop by the local int ncols cast to dimensionType, matching the
row loop, instead of comparing the unsigned short counter directly to
Rast_window_cols().
r.in.gdal: drop the null check on sdsdesc, which
is always assigned a non-null pointer beforehand.



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