Re: [PATCH 1/2] Fix dereference of potentially freed pointer in qemudDomainSaveFlags

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

 



On 06/03/2010 09:57 PM, Laine Stump wrote:
> The pointer to the xml describing the domain is saved into an object
> prior to calling VIR_REALLOC_N() to make the size of the memory it
> points to a multiple of QEMU_MONITOR_MIGRATE_TO_FILE_BS. If that
> operation needs to allocate new memory, the pointer that was saved is
> no longer valid.
> 
> To avoid this situation, adjust the size *before* saving the pointer.

ACK.  Subtle bugs like that can be a bear to track down.

-- 
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]