[GRASS-git] [OSGeo/grass] 85efe7: v.out.ogr: Check for valid array before passing to...
ymdatta
noreply at github.com
Mon Sep 9 14:03:25 PDT 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 85efe798c6106a18d562799a64453787ebc5a63f
https://github.com/OSGeo/grass/commit/85efe798c6106a18d562799a64453787ebc5a63f
Author: ymdatta <ymdatta.work at gmail.com>
Date: 2024-09-09 (Mon, 09 Sep 2024)
Changed paths:
M vector/v.out.ogr/list.c
Log Message:
-----------
v.out.ogr: Check for valid array before passing to qsort (#4278)
Currently, filling list with GDAL driver names is based on
a conditional and if the conditional fails, the list can be NULL.
We pass this list to qsort to sort the names, but behavior
of qsort with a NULL array is undefined. To avoid getting into this
situation, check if the array is NULL before performing qsort on it.
This issue was found using 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