libvirt/tools/nss
Ján Tomko faf6edfa74 json: do not call json_tokener_free with NULL
Add an error message for the rare case if json_tokener_new
fails (allocation failure) and guard any use of json_tokener_free
where tok might be NULL (this was possible in libvirt-nss
when the json file could not be opened).

https://gitlab.com/libvirt/libvirt/-/issues/581

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reported-by: Simon Pilkington
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
2024-11-04 12:15:10 +01:00
..
libvirt_guest_nss.syms
libvirt_nss_bsd.syms
libvirt_nss_leases.c json: do not call json_tokener_free with NULL 2024-11-04 12:15:10 +01:00
libvirt_nss_leases.h
libvirt_nss_macs.c json: do not call json_tokener_free with NULL 2024-11-04 12:15:10 +01:00
libvirt_nss_macs.h
libvirt_nss.c syntax-check: Forbid use of qsort() 2023-11-24 09:53:14 +01:00
libvirt_nss.h libvirt_nss: Fix ERROR() macro 2024-04-18 14:57:30 +02:00
libvirt_nss.syms
meson.build meson: options: drop yajl 2024-09-24 08:24:00 +02:00