libvirt/tools/nss
Michal Privoznik 1ab5a37c4a Don't call qsort() over NULL
In a few places it may happen that the array we want to sort is
still NULL (e.g. because there were no leases found, no paths for
secdriver to lock or no cache banks). However, passing NULL to
qsort() is undefined and even though glibc plays nicely we
shouldn't rely on undefined behaviour.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
2021-06-14 14:16:44 +02:00
..
libvirt_guest_nss.syms nss: Introduce libvirt-guest module 2016-12-06 13:34:00 +01:00
libvirt_nss_bsd.syms
libvirt_nss_leases.c nss: handle leases with infinite expiry time 2021-01-04 15:33:31 +01:00
libvirt_nss_leases.h
libvirt_nss_macs.c Don't pass NULL to yajl_free() 2020-03-30 16:11:13 +02:00
libvirt_nss_macs.h tools: avoid accidentally using files from gnulib 2019-08-08 13:32:02 +01:00
libvirt_nss.c Don't call qsort() over NULL 2021-06-14 14:16:44 +02:00
libvirt_nss.h lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
libvirt_nss.syms Implement _nss_libvirt_gethostbyname4_r 2016-03-18 17:29:53 +01:00
meson.build meson: Fix build with -Dtest_coverage=true 2021-01-19 16:25:50 +01:00