Re: [Qemu-devel] [PATCH] json-parser: Fix segfault on malformed input

2010-03-06 Thread Aurelien Jarno
On Wed, Feb 24, 2010 at 04:17:58PM +0100, Kevin Wolf wrote: > If the parser fails to parse the key in parse_pair, it will access a NULL > pointer. A simple way to trigger this is sending {foo} via QMP. This patch > turns the segfault into a syntax error reply. > > Signed-off-by: Kevin Wolf Thank

[Qemu-devel] [PATCH] json-parser: Fix segfault on malformed input

2010-02-24 Thread Kevin Wolf
If the parser fails to parse the key in parse_pair, it will access a NULL pointer. A simple way to trigger this is sending {foo} via QMP. This patch turns the segfault into a syntax error reply. Signed-off-by: Kevin Wolf --- json-parser.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(