Statistics
| Branch: | Revision:

root / json-streamer.c @ 48ff7a62

History | View | Annotate | Download (3.2 kB)

# Date Author Comment
29c75ddd 06/07/2011 09:52 pm Anthony Liguori

json-streamer: limit the maximum recursion depth and maximum token count

Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

eca7db46 06/07/2011 09:52 pm Anthony Liguori

json-streamer: make sure to reset token_size after emitting a token list

Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

5e2dafeb 06/07/2011 09:52 pm Michael Roth

json-streamer: add handling for JSON_ERROR token/state

This allows a JSON_ERROR state to be passed to the streamer to force a
flush of the current tokens and pass a NULL token list to the parser
rather that have it churn on bad data. (Alternatively we could just not...

55f8301f 06/07/2011 09:52 pm Anthony Liguori

json-streamer: allow recovery after bad input

Once we detect a malformed message, make sure to reset our state.

Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

2e89c068 06/11/2010 09:25 pm Luiz Capitulino

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 <>

d7ff3acb 11/17/2009 04:49 pm Anthony Liguori

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...