]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tools/nss: check for missing array element master
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 16 Oct 2025 10:09:18 +0000 (11:09 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 7 Nov 2025 11:58:35 +0000 (11:58 +0000)
commit1ff3d18528c24effc721f6e0a6b31c46cb5f0071
treeb47bd2b383c3017ce52c41be7e80d63debbf3220
parentf1e59f961d1e93abbe58c6207bcde6f2d7636789
tools/nss: check for missing array element

We've already checked the upper bound of the array, but we should
none the less sanity check that the requested array element is
not NULL before dereferencing it.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tools/nss/libvirt_nss_macs.c