[GRASS-git] [OSGeo/grass] cdb628: v.external.out: Check for valid array before passi...
ymdatta
noreply at github.com
Thu Aug 29 20:09:15 PDT 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: cdb62825a3a4d0ac042848b24ed121d58643f524
https://github.com/OSGeo/grass/commit/cdb62825a3a4d0ac042848b24ed121d58643f524
Author: ymdatta <ymdatta.work at gmail.com>
Date: 2024-08-29 (Thu, 29 Aug 2024)
Changed paths:
M vector/v.external.out/list.c
Log Message:
-----------
v.external.out: Check for valid array before passing it to qsort (#4251)
Currently, if 'HAVE_OGR' macro is defined, as part of execution, we sort all formats by name using qsort. But, array containing all formats is assigned based on a conditional and if the conditional fails, it can be NULL.
Behavior of qsort when a NULL array is provided is undefined. To avoid getting into that situation, check if the array is NULL before performing qsort on it.
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