[libvirt] [PATCH 6/3] qemu: avoid null deref on block pull error

Laine Stump laine at laine.org
Tue Aug 2 20:57:05 UTC 2011


On 08/02/2011 03:21 PM, Eric Blake wrote:
> Coverity detected that 5 of 6 callers of virJSONValueArrayGet checked
> for a NULL return; and that by not checking we risk a null deref
> during an error.  The error is unlikely since the prior call to
> virJSONValueArraySize would probably have already caught any botched
> JSON array parse, but better safe than sorry.


ACK.




More information about the libvir-list mailing list