RE: [PATCH] qemu_conf: Fix double free problem for cfg->firmwares

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

 



> -----Original Message-----
> From: Ján Tomko [mailto:jtomko@xxxxxxxxxx]
> Sent: Tuesday, November 24, 2020 6:57 PM
> To: tuguoyi (Cloud) <tu.guoyi@xxxxxxx>
> Cc: libvir-list@xxxxxxxxxx
> Subject: Re: [PATCH] qemu_conf: Fix double free problem for cfg->firmwares
> 
> On a Tuesday in 2020, Tuguoyi wrote:
> >cfg->firmwares still points to the original memory address after being
> >freed by virFirmwareFreeList(). As cfg get freed, it will be freed again
> >even if cfg->nfirmwares=0 which eventually lead to crash.
> >
> >The patch fix it by setting cfg->firmwares to NULL explicitly after
> >virFirmwareFreeList() returns
> >
> >Signed-off-by: Tuguoyi <tu.guoyi@xxxxxxx>
> 
> Should there be a space separating your name(s)?
> 
> >---
> > src/qemu/qemu_conf.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> 
> Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>
> 
> Jano

Hi there,

It's my first time to submit patch to libvirt, so I'm wondering will this patch be applied to the upstream?




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

  Powered by Linux