[libvirt PATCH] conf: Avoid NULL-dereference in virDomainObjGetMessages

Michal Prívozník mprivozn at redhat.com
Fri Feb 11 13:10:31 UTC 2022


On 2/11/22 13:59, Jiri Denemark wrote:
> All callers currently guarantee flags passed to virDomainObjGetMessages
> are either zero or contain at least one of the supported flags. But it
> doesn't mean we should not check for the possibility an unknown flag was
> the only one passed to virDomainObjGetMessages.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/conf/domain_conf.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>  

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

Michal




More information about the libvir-list mailing list