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 nss: Introduce libvirt-guest module 2016-12-06 13:34:00 +01:00
libvirt_nss_bsd.syms nss: FreeBSD support 2016-03-30 10:21:44 +03:00
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 tools: avoid accidentally using files from gnulib 2019-08-08 13:32:02 +01:00
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 tools: avoid accidentally using files from gnulib 2019-08-08 13:32:02 +01:00
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 Implement _nss_libvirt_gethostbyname4_r 2016-03-18 17:29:53 +01:00
meson.build meson: options: drop yajl 2024-09-24 08:24:00 +02:00