Re: [Qemu-devel] [PATCH] 9pfs: make unmarshal V9fsString more robust

2016-09-27 Thread Greg Kurz
On Wed, 28 Sep 2016 10:14:00 +0800 李强 wrote: > On 2016-09-28 0:40 GMT+08:00 Greg Kurz wrote: > > > > > Talking about robustness was appropriate for your previous patches, but > > it does not really apply here since v9fs_iov_vunmarshal() does not have > > any issue with empty strings actually. >

Re: [Qemu-devel] [PATCH] 9pfs: make unmarshal V9fsString more robust

2016-09-27 Thread 李强
On 2016-09-28 0:40 GMT+08:00 Greg Kurz wrote: > > Talking about robustness was appropriate for your previous patches, but > it does not really apply here since v9fs_iov_vunmarshal() does not have > any issue with empty strings actually. > > I've changed the title to: > > 9pfs: allocate space for

Re: [Qemu-devel] [PATCH] 9pfs: make unmarshal V9fsString more robust

2016-09-27 Thread Greg Kurz
On Tue, 27 Sep 2016 04:44:11 -0700 Li Qiang wrote: > From: Li Qiang > > In 9pfs function v9fs_iov_vunmarshal, it will not allocate space > for empty string. This will cause several NULL pointer dereference > issues. this patch fix this issue. > > Signed-off-by: Li Qiang > --- Talking about r

[Qemu-devel] [PATCH] 9pfs: make unmarshal V9fsString more robust

2016-09-27 Thread Li Qiang
From: Li Qiang In 9pfs function v9fs_iov_vunmarshal, it will not allocate space for empty string. This will cause several NULL pointer dereference issues. this patch fix this issue. Signed-off-by: Li Qiang --- fsdev/9p-iov-marshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -