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

2022-02-11 Thread Michal Prívozník
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 virDomainObjG

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

2022-02-11 Thread Jiri Denemark
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 ---