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

2010-06-04 Thread Eric Blake
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 poi

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

2010-06-03 Thread Laine Stump
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 t