[GRASS-git] [OSGeo/grass] b61c61: r3.showdspf: fix accessing uninitialized pointer (...
ymdatta
noreply at github.com
Thu Aug 29 05:12:37 PDT 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: b61c61d1a5c7ef07891a4819af7eadf7024228bd
https://github.com/OSGeo/grass/commit/b61c61d1a5c7ef07891a4819af7eadf7024228bd
Author: ymdatta <ymdatta.work at gmail.com>
Date: 2024-08-29 (Thu, 29 Aug 2024)
Changed paths:
M raster3d/r3.showdspf/get_color_ogl.c
Log Message:
-----------
r3.showdspf: fix accessing uninitialized pointer (#4246)
color2 pointer is not initialized and it is assigned a value
depending on a conditional. Potentially, in an execution path
if conditional fails, we would be accessing an uninitialized
pointer, whose behavior is undefined. Initialize the pointer
to NULL to avoid this.
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