Commit Graph
2288 Commits
Author SHA1 Message Date
Nigel Tao 2178dcd4da Fix wuffs_base__utf_8__encode conversion warning 2020-03-04 22:34:11 +11:00
Nigel Tao 267a07d3cb Add an example/zcat -fail-if-unsandboxed flag 2020-03-04 22:30:03 +11:00
Nigel Tao 757a4bd68c Add more test_strconv_parse_number_u64 test cases 2020-03-04 22:18:56 +11:00
Nigel Tao 0cd2f986bf Have jsonptr implement JSON Pointer queries 2020-03-04 21:39:36 +11:00
Nigel Tao b9ad34fad3 Add wuffs_base__utf_8__encode 2020-03-03 12:44:01 +11:00
Nigel Tao 6892095998 Have C programs handle flags consistently 2020-03-03 11:25:18 +11:00
Nigel Tao f928944d64 Add test/data/rfc-6901-json-pointer.json 2020-03-02 14:46:38 +11:00
Nigel Tao 43f0a87a6d Test std/json emit pending strings on bad UTF-8 2020-03-02 13:59:46 +11:00
Nigel Tao 19967648ef Add std/json while.string_loop_outer loop name 2020-03-01 22:39:02 +11:00
Nigel Tao 02b2ecd29e Add std/json while.string_loop_inner loop name 2020-03-01 22:37:50 +11:00
Nigel Tao 4ee19eb807 Have std/json emit pending strings on bad UTF-8
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=20973
2020-03-01 22:24:19 +11:00
Nigel Tao 107f0ef2e5 Add jsonptr --compact, --indent and --tabs flags 2020-03-01 21:39:28 +11:00
Nigel Tao b10460f643 Add a fuzz/c --color flag 2020-03-01 14:09:40 +11:00
Nigel Tao 3ab7640bab Add a fuzz_simple implementation to json_fuzzer 2020-03-01 13:49:50 +11:00
Nigel Tao 260995cb05 Have fuzz/c programs define WUFFS_CONFIG__MODULES
Before:
$ time ./build-fuzz.sh fuzz/c/std/json_fuzzer.c
real	0m0.822s
user	0m0.792s
sys	0m0.031s

After:
$ time ./build-fuzz.sh fuzz/c/std/json_fuzzer.c
real	0m0.294s
user	0m0.271s
sys	0m0.024s
2020-03-01 13:11:36 +11:00
Nigel Tao 16867779be Tighten cgen's funk.jumpTarget return type 2020-03-01 12:01:59 +11:00
Nigel Tao 21682f403f Add fuzz/c/std/json_fuzzer.c 2020-03-01 12:01:42 +11:00
Nigel Tao 6b29f32564 Add script/print-json-token-debug-format.c -a flag 2020-02-29 17:05:24 +11:00
Nigel Tao 85fba7f82b Tweak wuffs_base__token bitmask assignments again 2020-02-29 16:28:06 +11:00
Nigel Tao 67f00c15db Add script/print-json-token-debug-format.c -h flag 2020-02-29 16:13:11 +11:00
Nigel Tao 57b1dd69b3 Raise bench_wuffs_json_decode_217k_stringy iters 2020-02-29 10:48:09 +11:00
Nigel Tao d1c928a1ed Have tokens include explicit link bits 2020-02-29 10:46:44 +11:00
Nigel Tao cb37a56997 Have example/jsonptr consider string conversion 2020-02-28 09:56:24 +11:00
Nigel Tao 2cf76db02c Redo example/jsonptr's main loop 2020-02-27 22:42:01 +11:00
Nigel Tao 3b48698db3 Refactor example/jsonptr's handle_string 2020-02-27 15:05:59 +11:00
Nigel Tao 809220e6cc Add wuffs_base__utf_8__next 2020-02-27 14:41:45 +11:00
Nigel Tao 1ad5cfac4d Make wuffs_base__{load,store}_uNNxe public 2020-02-27 10:58:14 +11:00
Nigel Tao 8cd45054fa Fix U+D800 typo in std/json test 2020-02-27 10:28:20 +11:00
Nigel Tao 2fa96fc469 Fix doc/note/auto-formatting.md typo 2020-02-26 22:47:55 +11:00
Nigel Tao 193527bd2d Add script/print-json-token-debug-format.c 2020-02-26 22:47:31 +11:00
Nigel Tao 550ef90114 Have std/json reject invalid UTF-8 2020-02-26 16:26:16 +11:00
Nigel Tao 2e62fa369a Fix wuffs_base__parse_number_i64 warning 2020-02-26 14:37:33 +11:00
Nigel Tao 3b17d5b28a Have std/json reject some invalid UTF-8 2020-02-26 14:36:23 +11:00
Nigel Tao 9f0eb266e8 Rename std/json Look-Up Table consts 2020-02-26 11:43:50 +11:00
Nigel Tao 9d4eeb7b54 Tweak wuffs_base__token bitmask assignments again 2020-02-26 11:36:30 +11:00
Nigel Tao 1da8110462 Rename test/c test_cases loop variable 2020-02-26 10:25:30 +11:00
Nigel Tao 2278a47cc6 Fix wuffs_base__parse_number_i64 goto-crosses-init 2020-02-26 10:22:24 +11:00
Nigel Tao f31819bed4 Remove testlib's "#ifdef WUFFS_INCLUDE_GUARD" 2020-02-26 10:20:45 +11:00
Nigel Tao 014b935d95 Add base.token_decoder interface 2020-02-26 10:19:49 +11:00
Nigel Tao b319639bad Add doc/note/auto-formatting.md 2020-02-26 10:18:08 +11:00
Nigel Tao 31e5365a26 Rename testlib's BUFFER_SIZE constant 2020-02-26 09:45:05 +11:00
Nigel Tao 2914bae3b2 Re-format C function signatures 2020-02-26 09:40:30 +11:00
Nigel Tao 51b1258b61 Rename test/c throughput_counter enums 2020-02-25 22:46:49 +11:00
Nigel Tao 7d31462e63 Add std/json benches 2020-02-25 22:42:18 +11:00
Nigel Tao a540fbce4e Add test/data/file-sizes.json 2020-02-25 16:05:38 +11:00
Nigel Tao 29aadc6ff5 Add more test/data/*.json files
Original URLs:

australian-abc-local-stations.json

http://data.gov.au/geoserver/abc-local-stations/wfs?request=GetFeature&typeName=ckan_d534c0e9_a9bf_487b_ac8f_b7877a09d162&outputFormat=json

nobel-prizes.json

http://api.nobelprize.org/v1/prize.json
2020-02-25 13:19:39 +11:00
Nigel Tao 6d698a3a47 Add wuffs_base__parse_number_i64 2020-02-25 13:07:22 +11:00
Nigel Tao a9d1488674 Tweak wuffs_base__token bitmask assignments 2020-02-25 12:12:31 +11:00
Nigel Tao 16b0c4652a Have std/json decode Unicode surrogate pairs 2020-02-25 10:45:31 +11:00
Nigel Tao 7b199116b0 Rename s/got/have/ in test/c 2020-02-24 21:23:58 +11:00