Re: [Qemu-devel] [PATCH] qemu-sockets: Fix buffer overflow in inet_parse()

2015-01-30 Thread John Snow
On 01/30/2015 02:37 PM, Kevin Wolf wrote: The size of the stack allocated host[] array didn't account for the terminating '\0' byte that sscanf() writes. Fix the array size. Signed-off-by: Kevin Wolf --- util/qemu-sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH] qemu-sockets: Fix buffer overflow in inet_parse()

2015-01-30 Thread Kevin Wolf
The size of the stack allocated host[] array didn't account for the terminating '\0' byte that sscanf() writes. Fix the array size. Signed-off-by: Kevin Wolf --- util/qemu-sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c inde