Re: [Qemu-devel] [PATCH] json-parser: Fix potential NULL pointer segfault

2012-09-03 Thread Luiz Capitulino
On Mon, 3 Sep 2012 21:19:11 +0200 Stefan Weil wrote: > Report from smatch: > json-parser.c:474 parse_object(62) error: potential null derefence 'dict'. > json-parser.c:553 parse_array(75) error: potential null derefence 'list'. > > Label 'out' in json-parser.c can be called with list == NULL >

[Qemu-devel] [PATCH] json-parser: Fix potential NULL pointer segfault

2012-09-03 Thread Stefan Weil
Report from smatch: json-parser.c:474 parse_object(62) error: potential null derefence 'dict'. json-parser.c:553 parse_array(75) error: potential null derefence 'list'. Label 'out' in json-parser.c can be called with list == NULL which is passed to QDECREF. Modify QDECREF to handle a NULL argumen

Re: [Qemu-devel] [PATCH] json-parser: Fix potential NULL pointer segfault

2012-09-03 Thread Luiz Capitulino
On Mon, 03 Sep 2012 19:14:27 +0200 Stefan Weil wrote: > Am 03.09.2012 18:53, schrieb Stefan Weil: > > Am 03.09.2012 18:41, schrieb Luiz Capitulino: > >> On Sat, 1 Sep 2012 12:52:58 +0200 > >> Stefan Weil wrote: > >> > >>> Report from smatch: > >>> json-parser.c:474 parse_object(62) error: poten

Re: [Qemu-devel] [PATCH] json-parser: Fix potential NULL pointer segfault

2012-09-03 Thread Stefan Weil
Am 03.09.2012 18:53, schrieb Stefan Weil: Am 03.09.2012 18:41, schrieb Luiz Capitulino: On Sat, 1 Sep 2012 12:52:58 +0200 Stefan Weil wrote: Report from smatch: json-parser.c:474 parse_object(62) error: potential null derefence 'dict'. json-parser.c:553 parse_array(75) error: potential null

Re: [Qemu-devel] [PATCH] json-parser: Fix potential NULL pointer segfault

2012-09-03 Thread Stefan Weil
Am 03.09.2012 18:41, schrieb Luiz Capitulino: On Sat, 1 Sep 2012 12:52:58 +0200 Stefan Weil wrote: Report from smatch: json-parser.c:474 parse_object(62) error: potential null derefence 'dict'. json-parser.c:553 parse_array(75) error: potential null derefence 'list'. Label out can be called

Re: [Qemu-devel] [PATCH] json-parser: Fix potential NULL pointer segfault

2012-09-03 Thread Luiz Capitulino
On Sat, 1 Sep 2012 12:52:58 +0200 Stefan Weil wrote: > Report from smatch: > json-parser.c:474 parse_object(62) error: potential null derefence 'dict'. > json-parser.c:553 parse_array(75) error: potential null derefence 'list'. > > Label out can be called with list == NULL. > > Signed-off-by:

[Qemu-devel] [PATCH] json-parser: Fix potential NULL pointer segfault

2012-09-01 Thread Stefan Weil
Report from smatch: json-parser.c:474 parse_object(62) error: potential null derefence 'dict'. json-parser.c:553 parse_array(75) error: potential null derefence 'list'. Label out can be called with list == NULL. Signed-off-by: Stefan Weil --- json-parser.c |8 ++-- 1 file changed, 6 ins