[GRASS-git] [OSGeo/grass] 3afa11: r3.showdspf: fix null pointer dereference when ope...

ymdatta noreply at github.com
Wed Aug 28 22:30:45 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 3afa11d44d9821de76a2b319cc1c7d086c4c5375
      https://github.com/OSGeo/grass/commit/3afa11d44d9821de76a2b319cc1c7d086c4c5375
  Author: ymdatta <ymdatta.work at gmail.com>
  Date:   2024-08-29 (Thu, 29 Aug 2024)

  Changed paths:
    M raster3d/r3.showdspf/main_ogl.c

  Log Message:
  -----------
  r3.showdspf: fix null pointer dereference when opening database file (#4245)

r3.showdspf: fix null pointer dereference

In the current execution, when we face an error while trying
to open a database file, as part of error log we are dereferencing
a NULL file pointer (which is returend when we try to open a file).
Ideally we should be printing the name of the database file rather
than the file pointer. This fixes the problem of null pointer
dereference. Found via cppcheck tool.

Signed-off-by: Mohan Yelugoti <ymdatta.work at gmail.com>



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