[libvirt] [PATCH 1/3] qemu: fix crash due to freeing an uninitialised pointer

Pavel Mores pmores at redhat.com
Fri Dec 6 14:52:10 UTC 2019


On Fri, Dec 06, 2019 at 02:49:26PM +0100, Michal Privoznik wrote:
> On 12/6/19 10:11 AM, Pavel Mores wrote:
> > The bug was fairly though not 100% reproducible, presumably due to the fact
> > that some of the time, 'safename' might turn out NULL by chance, in which case
> > freeing it is OK.
> > 
> > Signed-off-by: Pavel Mores <pmores at redhat.com>
> > ---
> >   src/qemu/qemu_monitor_text.c | 2 --
> >   1 file changed, 2 deletions(-)
> 
> D'oh! I've came around this bug in the morning when playing with libvirt-php
> too and merged patch around the same time as you posted this fix.
> 
> https://www.redhat.com/archives/libvir-list/2019-December/msg00341.html
> 
> Sorry,

No problem,  what's important is that it's fixed. :-)

	pvl




More information about the libvir-list mailing list