[Qemu-devel] [PATCH] 9pfs: fix integer overflow issue in xattr read/write

2016-10-11 Thread Li Qiang
From: Li Qiang In 9pfs xattr read/write function, it mix to use unsigned/signed ,32/64 bits integers. This will causes oob read/write issues. This patch fix this. Signed-off-by: Li Qiang --- hw/9pfs/9p.c | 29 + 1 file changed, 13 insertions(+), 16 deletions(-) dif

Re: [Qemu-devel] [PATCH] 9pfs: fix integer overflow issue in xattr read/write

2016-10-12 Thread Greg Kurz
Hi Li, I agree with the idea behind this patch but I have the impression that some more work is needed. See below. On Tue, 11 Oct 2016 21:29:19 -0700 Li Qiang wrote: > From: Li Qiang > > In 9pfs xattr read/write function, it mix to use unsigned/signed > ,32/64 bits integers. This will causes