Re: [Qemu-devel] [PATCH] slirp: fix segv when init failed

2016-08-20 Thread Samuel Thibault
Marc-André Lureau, on Thu 18 Aug 2016 17:44:05 +0400, wrote: > Since commit f6c2e66ae8c8a, slirp uses an exit notifier to call > slirp_smb_cleanup. However, if init() failed, the notifier isn't added, > and removing it will fail: > > ==18447== Invalid write of size 8 > ==18447==at 0x7EF2B5: no

Re: [Qemu-devel] [PATCH] slirp: fix segv when init failed

2016-08-18 Thread Jason Wang
On 2016年08月18日 21:44, Marc-André Lureau wrote: Since commit f6c2e66ae8c8a, slirp uses an exit notifier to call slirp_smb_cleanup. However, if init() failed, the notifier isn't added, and removing it will fail: ==18447== Invalid write of size 8 ==18447==at 0x7EF2B5: notifier_remove (notify.

[Qemu-devel] [PATCH] slirp: fix segv when init failed

2016-08-18 Thread Marc-André Lureau
Since commit f6c2e66ae8c8a, slirp uses an exit notifier to call slirp_smb_cleanup. However, if init() failed, the notifier isn't added, and removing it will fail: ==18447== Invalid write of size 8 ==18447==at 0x7EF2B5: notifier_remove (notify.c:32) ==18447==by 0x48E80C: qemu_remove_exit_no