Skip to content

Fix JSON string formatter

Markus Armbruster qemu-devel 1 version Applied

Status from this message: Thanks, applied all.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesApplied

v2 from the cover letter

- Rebased, trivial conflicts in PATCH 1/4.
- Make mod_utf8_codepoint() treat empty input as invalid sequence of length zero (both when n==0 and when n>0 && *s==0). No code in this series passes empty input.
- Some commit messages and comments improved.

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4unicode: New mod_utf8_codepoint()include/qemu-common.h util/Makefile.objs util/unicode.c+104 -10 replies
2/4check-qjson: Improve a few comments, delete bogus onestests/check-qjson.c+13 -90 replies
3/4check-qjson: Test noncharacters other than U+FFFE, U+FFFF in stringstests/check-qjson.c+84 -120 replies
4/4qjson: to_json() case QTYPE_QSTRING is buggy, rewriteqobject/qjson.c tests/check-qjson.c+145 -1730 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLaszlo Ersek
SeriesR-b
1/4
2/4
3/4
4/4

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] Fix JSON string formatter

This should unbreak "make check" on machines where char is unsigned. Blue, please give it a whirl.

The JSON parser is still as broken as ever. Left for another day.

v2:
- Rebased, trivial conflicts in PATCH 1/4.
- Make mod_utf8_codepoint() treat empty input as invalid sequence of length zero (both when n==0 and when n>0 && *s==0). No code in this series passes empty input.
- Some commit messages and comments improved.

Markus Armbruster (4):
unicode: New mod_utf8_codepoint()
check-qjson: Improve a few comments, delete bogus ones
check-qjson: Test noncharacters other than U+FFFE, U+FFFF in strings
qjson: to_json() case QTYPE_QSTRING is buggy, rewrite

 include/qemu-common.h |   3 +
 qobject/qjson.c       | 102 ++++++++---------
 tests/check-qjson.c   | 308 ++++++++++++++++++++++++++++++--------------------
 util/Makefile.objs    |   2 +-
 util/unicode.c        | 100 ++++++++++++++++
 5 files changed, 333 insertions(+), 182 deletions(-)
 create mode 100644 util/unicode.c
Signature · 1 line
1.7.11.7