libvirt/src/security
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
..
apparmor apparmor: Permit new capabilities required by libvirtd 2021-06-08 11:13:00 -06:00
meson.build virt-aa-helper: Remove duplicate linking with src/datatypes.o 2021-06-14 12:06:06 +02:00
security_apparmor.c conf: Parse/format XML input type 'evdev' 2021-05-21 14:29:09 +02:00
security_apparmor.h src/security: use #pragma once in headers 2019-06-19 17:12:31 +02:00
security_dac.c conf: Parse/format XML input type 'evdev' 2021-05-21 14:29:09 +02:00
security_dac.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
security_driver.c lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
security_driver.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
security_manager.c Don't call qsort() over NULL 2021-06-14 14:16:44 +02:00
security_manager.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
security_nop.c lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
security_nop.h src/security: use #pragma once in headers 2019-06-19 17:12:31 +02:00
security_selinux.c conf: Parse/format XML input type 'evdev' 2021-05-21 14:29:09 +02:00
security_selinux.h src/security: use #pragma once in headers 2019-06-19 17:12:31 +02:00
security_stack.c lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
security_stack.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
security_util.c qemusecuritytest: Skip on non supported platforms 2020-11-06 09:14:53 +01:00
security_util.h qemusecuritytest: Skip on non supported platforms 2020-11-06 09:14:53 +01:00
virt-aa-helper.c conf: Parse/format XML input type 'evdev' 2021-05-21 14:29:09 +02:00