Re: [PATCH] virDomainMemoryStats: avoid null dereference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/14/2011 05:38 PM, Laine Stump wrote:
> On 02/14/2011 06:25 PM, Eric Blake wrote:
>> * src/libvirt.c (virDomainMemoryStats): Check domain before flags.
>> ---
>>
>> Another valid bug found by clang.  User's generally should't call
>> virDomainMemoryStats(NULL,...), but we don't forbid it elsewhere, and
>> doing so is not supposed to crash libvirt.  All other flags checks in
>> this file occur after validating the object first.
> 
> ACK

Thanks; pushed.

Wow - that actually caused a SHA1 hash collision in git that requires 8
hex digits to resolve (compared to the usual 7 or less)!

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]