Skip to content

json: More fixes, error reporting improvements, cleanups

Markus Armbruster qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v16 patches 16 repliesSuperseded

Changes in v2 from the cover letter

* PATCH 1-2,4,6: Minor commit message improvements [Eric]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6json: Fix lexer for lookahead character beyond '\x7F'qobject/json-lexer.c+1 -10 replies
2/6json: Clean up how lexer consumes "end of input"qobject/json-lexer.c+9 -80 replies
3/6json: Make lexer's "character consumed" logic less confusingqobject/json-lexer.c qobject/json-parser-int.h+17 -110 replies
4/6json: Nicer recovery from lexical errorsqobject/json-lexer.c tests/qmp-test.c+30 -190 replies
5/6json: Eliminate lexer state IN_ERRORqobject/json-lexer.c qobject/json-parser-int.h+9 -80 replies
6/6json: Eliminate lexer state IN_WHITESPACE, pseudo-token JSON_SKIPqobject/json-lexer.c qobject/json-parser-int.h+5 -180 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/6] json: More fixes, error reporting improvements, cleanups

Just a few patches to follow up on "json: Fixes, error reporting improvements, cleanups".

v2:
* PATCH 1-2,4,6: Minor commit message improvements [Eric]

Markus Armbruster (6):
json: Fix lexer for lookahead character beyond '\x7F'
json: Clean up how lexer consumes "end of input"
json: Make lexer's "character consumed" logic less confusing
json: Nicer recovery from lexical errors
json: Eliminate lexer state IN_ERROR
json: Eliminate lexer state IN_WHITESPACE, pseudo-token JSON_SKIP

 qobject/json-lexer.c      | 108 +++++++++++++++++++++-----------------
 qobject/json-parser-int.h |  10 ++--
 tests/qmp-test.c          |   6 +--
 3 files changed, 65 insertions(+), 59 deletions(-)
Signature · 1 line
2.17.1