[Qemu-devel] [PATCH 1/4] json-streamer: Apply nesting limit more sanely

2015-10-29 Thread Markus Armbruster
The nesting limit from commit 29c75dd "json-streamer: limit the maximum recursion depth and maximum token count" applies separately to braces and brackets. This makes no sense. Apply it to their sum, because that's actually a measure of recursion depth. Signed-off-by: Markus Armbruster

Re: [Qemu-devel] [PATCH 1/4] json-streamer: Apply nesting limit more sanely

2015-10-29 Thread Eric Blake
On 10/29/2015 06:44 AM, Markus Armbruster wrote: > The nesting limit from commit 29c75dd "json-streamer: limit the > maximum recursion depth and maximum token count" applies separately to > braces and brackets. This makes no sense. Apply it to their sum, > because that's actually a measure of