json-lexer: limit the maximum size of a given token
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
json-streamer: limit the maximum recursion depth and maximum token count
json-streamer: make sure to reset token_size after emitting a token list
json-parser: detect premature EOI
json-lexer: reset the lexer state on an invalid token
json-lexer: fix flushing logic to not always go to error state
Currently we flush the lexer by passing in a NULL character. Thisgenerally forces the lexer to go to the corresponding TERMINAL statefor whatever token type it is currently parsing, emits the token to the...
QError: Introduce qerror_format()
Will be used by new error propagation framework to convert Error objectsinto human-readable form.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Introduce the new error framework
New error-handling framework that allows for exception-like errorpropagation.
json-parser: propagate error from parser
json-streamer: allow recovery after bad input
Once we detect a malformed message, make sure to reset our state.
View all revisions | View revisions
Also available in: Atom