Re: [Qemu-devel] [PATCH] 9pfs: fix NULL pointer dereference in v9fs_version

2016-09-27 Thread Greg Kurz
On Mon, 26 Sep 2016 21:38:48 -0700 Li Qiang wrote: > From: Li Qiang > > In 9pfs get version dispatch function, a guest can provide a NULL > version string thus causing an NULL pointer dereference issue. The guest doesn't provide NULL, but an empty string actually. > This patch fix this issue.

[Qemu-devel] [PATCH] 9pfs: fix NULL pointer dereference in v9fs_version

2016-09-26 Thread Li Qiang
From: Li Qiang In 9pfs get version dispatch function, a guest can provide a NULL version string thus causing an NULL pointer dereference issue. This patch fix this issue. Signed-off-by: Li Qiang --- hw/9pfs/9p.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p