[GRASS-git] [OSGeo/grass] e23f4d: i.maxlik: fix crash when classification result is ...

Māris Nartišs noreply at github.com
Mon Jan 2 22:56:04 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: e23f4d61f1bdec16c2811064fd5fd21f9de04f72
      https://github.com/OSGeo/grass/commit/e23f4d61f1bdec16c2811064fd5fd21f9de04f72
  Author: Māris Nartišs <maris.gis at gmail.com>
  Date:   2023-01-03 (Tue, 03 Jan 2023)

  Changed paths:
    M imagery/i.maxlik/main.c
    M imagery/i.maxlik/testsuite/test_i_maxlik.py

  Log Message:
  -----------
  i.maxlik: fix crash when classification result is NULL (#2724)

If any input cell from imagery group is NULL, the result of classification is also NULL. The implementation of original cat restoration (79f9500) did not check for this corner case and thus caused an out of bounds value access.




More information about the grass-commit mailing list