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

2011-08-02 Thread Eric Blake
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

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

2011-08-02 Thread Laine Stump
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