Commit Graph
81 Commits
Author SHA1 Message Date
Nigel Tao c19e3b1cab Add script/extract-nia-frames.go 2021-11-11 11:47:08 +11:00
Nigel Tao f4c2d4652e Fix test/data/animated-red-blue.apng loop count
The diff of the "hd" hex dump shows that the acTL chunk's nominal loop
count changed from 2 to 3. The 4-byte CRC-32 checksum was also updated.
 00000000  89 50 4e 47 0d 0a 1a 0a  00 00 00 0d 49 48 44 52  |.PNG........IHDR|
 00000010  00 00 00 40 00 00 00 30  08 02 00 00 00 2e 29 eb  |...@...0......).|
 00000020  48 00 00 00 08 61 63 54  4c 00 00 00 04 00 00 00  |H....acTL.......|
-00000030  02 92 c3 07 fc 00 00 00  06 74 52 4e 53 00 00 00  |.........tRNS...|
+00000030  03 e5 c4 37 6a 00 00 00  06 74 52 4e 53 00 00 00  |...7j....tRNS...|
 00000040  00 00 10 73 11 17 f5 00  00 00 1a 66 63 54 4c 00  |...s.......fcTL.|
 00000050  00 00 00 00 00 00 40 00  00 00 30 00 00 00 00 00  |......@...0.....|
 00000060  00 00 00 00 0a 00 64 00  00 80 50 f1 a2 00 00 03  |......d...P.....|
2021-11-07 10:43:32 +11:00
Nigel Tao 0a7168fd64 Add test/data/*.apng 2021-11-05 22:28:08 +11:00
Nigel Tao f40ef01244 Have make-red-blue-gradient use iCCP profile name 2021-10-31 15:35:14 +11:00
Nigel Tao a9a6332be2 Have etc__magic_number_guess_fourcc find ICO 2021-10-22 15:51:44 +11:00
Nigel Tao d557bc3836 Embiggen test/data/red-blue-gradient.*.png 2021-10-22 09:23:49 +11:00
Nigel Tao 35cb4df973 Rename test/data/red-blue-gradient.dcip3d65.png 2021-10-20 19:38:24 +11:00
Nigel Tao 6ea3144379 Add test/data/checkerboard.*.png 2021-10-20 09:58:42 +11:00
Nigel Tao e6733aec19 Add test/data/red-blue-gradient.dcip3d65.png 2021-10-15 11:29:26 +11:00
Nigel Tao dbc209dd7e Add test/data/red-blue-gradient.*.png 2021-10-14 15:58:03 +11:00
Nigel Tao de45ab1d2b Add archive.password-is-asdf.zip
$ zip --password asdf archive.password-is-asdf.zip etc etc
2021-09-21 11:54:02 +10:00
Nigel Tao 9d10438914 Add test/data/bricks-dither.no-ancillary.png 2021-09-06 22:57:55 +10:00
Nigel Tao 77f855206d Have JSON line-comment tokens exclude the "\n"
Before this commit, line-comment token chains included the final "\n"
the way block-comments included the final "*/". The "\n" was mandatory.

However, when parsing with both QUIRK_ALLOW_COMMENT_LINE and
QUIRK_ALLOW_TRAILING_FILLER, input like "123//xyz" (without a "\n"
before the EOF) was rejected before and accepted after this commit.

So that line-comments are consistent, in that they either always or
never include the final "\n", they now never include the final "\n".

An input fragment (parsed with QUIRK_ALLOW_COMMENT_LINE) like
"//abc\n\t\t" was, before this commit, parsed as a 6 byte comment token
and a 2 byte other-filler token. That split is now 5+3.
2021-07-20 14:17:09 +10:00
Nigel Tao b0826d2ab7 Add test/data/archive.*
$ 7z a     archive.7z \
    artificial/0.bytes github-tags.json hello.sh non-ascii/αβ.txt \
    non-ascii/😻.txt pjw-thumbnail.png romeo.txt romeo.txt.gz
$ zip      archive.zip     etc etc
$ rar a    archive.rar     etc etc
$ tar cvf  archive.tar     etc etc
$ tar cvjf archive.tar.bz2 etc etc
$ tar cvzf archive.tar.gz  etc etc
$ lcab etc etc archive.cab

And after curating a data/ directory (without non-ascii/😻.txt):

$ genisoimage -v -J -r -V WUFFS_TEST_DATA_SUBSET -o archive.iso data/
2021-05-03 22:25:35 +10:00
Nigel Tao 5477132298 Have std/png verify PLTE chunk checksums 2021-01-21 20:21:33 +11:00
Nigel Tao 6c2fb9a2fd Tweak test/data/artif*/gif-transparent-index.gif 2020-09-27 00:09:25 +10:00
Nigel Tao 344123b179 Add test/data/artificial/gif-transparent-index.gif 2020-09-25 23:01:43 +10:00
Nigel Tao 4284369bb8 Add TOKEN__VBD__FILLER__PUNCTUATION 2020-08-17 16:48:30 +10:00
Nigel Tao 2de1dfec97 Fix test/data/cbor*tokens losing DEFINITELY_ASCII
The change to the golden file was mistakenly left out of 2397d029 "Fix
std/cbor UTF-8 strings aren't always ASCII".
2020-08-12 23:32:40 +10:00
Nigel Tao 0b7eaf291b Add example/cbor-to-json 2020-08-09 23:03:42 +10:00
Nigel Tao 1adbc9547f Split std/json's QUIRK_ALLOW_BACKSLASH_X in two 2020-08-06 23:28:07 +10:00
Nigel Tao 1e96ef200c Add test/data/cbor-rfc-7049-examples.* 2020-07-27 22:00:28 +10:00
Nigel Tao 168f60a781 Add example/jsonptr -output-format=cbor flag 2020-07-14 15:57:05 +10:00
Nigel Tao b9afc26387 Add TOKEN__VBD__STRING__CHAIN_ETC 2020-07-03 13:36:13 +10:00
Nigel Tao dcb81a85bb Prepare to decode BMP embedding a JPEG or PNG 2020-05-27 13:37:54 +10:00
Nigel Tao 2c643aa704 Add example/convert-to-nia 2020-05-14 21:44:03 +10:00
Nigel Tao f602237490 Tweak NIA/NIA duration wire format
Durations now take 63 bits, not 62, which matches the bit depth of a
non-negative int64_t.

Frame durations now come before, not after, the frame pixels.
2020-05-14 21:11:08 +10:00
Nigel Tao 496e88b6c5 Remove wuffs_base__token__link_prev 2020-04-09 22:11:08 +10:00
Nigel Tao 7edf71414f Fix std/json replace_invalid_unicode copy/pasto
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21465
2020-03-31 22:37:43 +11:00
Nigel Tao 5d5a17cc9c Add test/data/json-quirks.json 2020-03-24 17:13:07 +11:00
Nigel Tao c3ca77a539 Add WUFFS_BASE__TOKEN__VBD__NUMBER__FORMAT_ETC 2020-03-11 12:06:50 +11:00
Nigel Tao f928944d64 Add test/data/rfc-6901-json-pointer.json 2020-03-02 14:46:38 +11:00
Nigel Tao 85fba7f82b Tweak wuffs_base__token bitmask assignments again 2020-02-29 16:28:06 +11:00
Nigel Tao d1c928a1ed Have tokens include explicit link bits 2020-02-29 10:46:44 +11:00
Nigel Tao 193527bd2d Add script/print-json-token-debug-format.c 2020-02-26 22:47:31 +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 4503f2de63 Add test/data/json-things.*.json 2020-02-21 21:33:46 +11:00
Nigel Tao 621bd9505d Add script/draw-with-mask.go 2020-01-24 10:01:43 +11:00
Nigel Tao e2e51786a0 Add more test/data/*.wbmp files 2020-01-16 15:22:01 +11:00
Nigel Tao 3128500e20 Add script/convert-png-to-wbmp.go 2020-01-16 12:32:38 +11:00
Nigel Tao ab0b2fd2aa Add test/data/github-tags.json
wget -O github-tags.json https://api.github.com/repos/google/wuffs/tags
2020-01-10 16:29:23 +11:00
Nigel Tao 8ac2af0122 Change raczlib's dictionary wire format
This makes raczlib and raczstd use the same format: RAC's "common
dictionary format".

This is a breaking change to any existing RAC+Zlib files that use shared
dictionaries. RAC+Zlib is still an experimental (unstable) file format.
2019-10-24 10:47:48 +11:00
Nigel Tao dc1218fec0 Spell std/deflate's "literal/length" consistently 2019-10-14 09:28:28 +11:00
Nigel Tao ff7bffcffc Calculate deflate Huffman table worst case size 2019-10-14 09:21:29 +11:00
Nigel Tao 358ad7f918 Add an explicit deflate-etc.deflate.decompressed 2019-10-12 22:05:11 +11:00
Nigel Tao 18c6e5716a Fix deflate-etc.deflate.commentary.txt typo 2019-10-12 08:26:43 +11:00
Nigel Tao efb18036cb Add gif-small-frame-interlaced.gif test 2019-10-05 11:40:24 +10:00
Nigel Tao 15670546bb Let std/deflate decode a degenerate H-D table 2019-09-28 13:23:49 +10:00
Nigel Tao ca9015bd2d Have std/gif replicate interlaced rows 2019-09-14 08:35:50 +10:00