[libvirt] [PATCH] util: avoid null deref on qcowXGetBackingStore

Michal Privoznik mprivozn at redhat.com
Wed Nov 30 10:05:50 UTC 2011


On 30.11.2011 08:50, ajia at redhat.com wrote:
> From: Alex Jia <ajia at redhat.com>
> 
> Detected by Coverity. the only case is caller passes a NULL to 'format' variable,
> then taking 'if (format)' false branch, the function qcow2GetBackingStoreFormat
> will directly dereferences the NULL 'format' pointer variable.
> 
> Signed-off-by: Alex Jia <ajia at redhat.com>
> ---

ACK & pushed.

Michal




More information about the libvir-list mailing list