eca7db46ff
json-streamer: make sure to reset token_size after emitting a token list
...
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com >
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2011-06-07 13:52:11 -05:00
29c75ddd87
json-streamer: limit the maximum recursion depth and maximum token count
...
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com >
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2011-06-07 13:52:11 -05:00
55f8301f76
json-streamer: allow recovery after bad input
...
Once we detect a malformed message, make sure to reset our state.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com >
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2011-06-07 13:52:10 -05:00
2e89c06889
json-streamer: Don't use qdict_put_obj()
...
It's not needed, use qobject_put() instead and get a cleaner code.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com >
2010-06-11 15:25:14 -03:00
d7ff3acbb4
Add a JSON message boundary identifier
...
The second stage of our JSON parser is a simple state machine that identifies
individual JSON values by counting the levels of nesting of tokens. It does
not perform grammar validation. We use this to emit a full JSON value to the
parser.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2009-11-17 08:49:39 -06:00