Commit Graph
791 Commits
Author SHA1 Message Date
Nigel Tao 38827d87f3 Have restart_frame require decode_image_config 2020-12-19 22:45:41 +11:00
Nigel Tao 68fb70f9d5 Harmonize image decoders' call_sequence states 2020-12-19 22:42:49 +11:00
Nigel Tao 9399c82409 Have non-animated image decoders give EOD earlier 2020-12-19 22:03:22 +11:00
Nigel Tao 695a6815b1 Remove gif.config_decoder
The original motivation (having a low-featured low-memory decoder just
for counting GIF frames) is obsolete: https://crbug.com/1132828

Binary size, before:
42264 gen/lib/c/clang-9-dynamic/wuffs-std-gif.lo
42392 gen/lib/c/clang-9-static/wuffs-std-gif.o
44824 gen/lib/c/gcc-dynamic/wuffs-std-gif.lo
45624 gen/lib/c/gcc-static/wuffs-std-gif.o

After:
26736 gen/lib/c/clang-9-dynamic/wuffs-std-gif.lo
26712 gen/lib/c/clang-9-static/wuffs-std-gif.o
27976 gen/lib/c/gcc-dynamic/wuffs-std-gif.lo
28392 gen/lib/c/gcc-static/wuffs-std-gif.o
2020-12-18 22:06:08 +11:00
Nigel Tao 688de33f2a Have std/bmp skip_frame handle RLE compression 2020-12-15 16:19:18 +11:00
Nigel Tao 290adc9069 Have std/bmp consume the final per-row padding 2020-12-15 11:43:04 +11:00
Nigel Tao 59799ddcc5 Remove std/bmp redundant dst_y_end field 2020-12-14 23:17:31 +11:00
Nigel Tao 47b114e948 Have std/bmp reject RLE EOL if y out of bounds 2020-12-14 23:12:27 +11:00
Nigel Tao 1878dc9037 Have std/bmp detect bad RLE compression 2020-12-14 09:49:16 +11:00
Nigel Tao f880d644fa Have std/bmp decode OS/2 BMP files 2020-12-14 09:24:40 +11:00
Nigel Tao 7c2f36509b Have std/bmp decode 1, 2 or 4 bits per pixel 2020-12-13 22:37:40 +11:00
Nigel Tao 8a12a64754 Add limited_swizzle_u32_interleaved_from_reader 2020-12-12 00:28:16 +11:00
Nigel Tao 977ed8f0d9 Have std/bmp decode COMPRESSION_RLE8 2020-12-11 10:24:25 +11:00
Nigel Tao 49b5b3c03c Remove redundant loop condition in std/bmp 2020-12-05 23:11:41 +11:00
Nigel Tao f67d83cc07 Add std/bmp COMPRESSION_ETC constants 2020-12-05 22:49:28 +11:00
Nigel Tao 6695e4aae8 Fix std/bmp checking bits_per_pixel too early 2020-12-04 23:23:12 +11:00
Nigel Tao 8482161c91 Add base.pixel_buffer.palette_or_else 2020-12-02 22:13:35 +11:00
Nigel Tao 2cf0252453 Have std/bmp decode 8-bit paletted images 2020-11-26 14:34:32 +11:00
Nigel Tao 960b5df3c4 Have std/bmp decode BITFIELDS compression 2020-11-24 09:00:32 +11:00
Nigel Tao cda0db2f0c Rename std/bmp mask_x fields 2020-11-23 22:40:11 +11:00
Nigel Tao 3811a2b839 Have std/bmp decode BGRX 2020-11-18 23:44:04 +11:00
Nigel Tao 904004e79a Let non-strict JSON Pointer syntax allow "~t" 2020-11-15 20:56:04 +11:00
Nigel Tao 2dfe222681 Drop args- and this-related facts after ? call 2020-11-05 14:49:47 +11:00
Nigel Tao 178c6422b7 Delete deprecated JSON quirks 2020-09-24 12:46:00 +10:00
Nigel Tao cd4cbc9102 Tweak JSON trailing comment/new-line quirks 2020-09-22 23:03:49 +10:00
Nigel Tao fa50f4de67 Add json QUIRK_ALLOW_TRAILING_COMMENT 2020-09-21 11:24:22 +10:00
Nigel Tao 2912ea8e28 Re-assign JSON quirk numbers 2020-09-21 10:30:46 +10:00
Nigel Tao a06a89c080 Add link to previous commit (BACKSLASH_X_AS_BYTES) 2020-08-30 21:14:11 +10:00
Nigel Tao 6c13877688 Drop WUFFS_JSON__QUIRK_ALLOW_BACKSLASH_X_AS_BYTES
We can always add it back later if there's demand for it.
2020-08-30 16:15:35 +10:00
Nigel Tao 6bc3f5716d Add "#json: bad new-line in a string" 2020-08-29 23:23:15 +10:00
Nigel Tao 75e1efcc4a Fix std/cbor src.meta.ri for too much recursion
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25145
2020-08-24 00:39:54 +10:00
Nigel Tao 1f3912aadf Fix std/cbor decoding multi-byte 0-length strings
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25041
2020-08-20 11:41:23 +10:00
Nigel Tao 4284369bb8 Add TOKEN__VBD__FILLER__PUNCTUATION 2020-08-17 16:48:30 +10:00
Nigel Tao 3c3d58bfe7 Rename io_writer.history_available 2020-08-13 23:29:59 +10:00
Nigel Tao be8542e313 Rename I/O available methods to length 2020-08-13 23:26:08 +10:00
Nigel Tao 79b923c322 Rename io_reader.available_valid_utf_8 2020-08-13 23:15:28 +10:00
Nigel Tao b3438434ca Add json QUIRK_JSON_POINTER_ALLOW_TILDE_R_TILDE_N 2020-08-13 00:06:56 +10:00
Nigel Tao 16fadb25cf Fix std/cbor meta.ri decoding F8XX for small XX
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24819
2020-08-12 23:45:44 +10:00
Nigel Tao 28ef6a7862 Add fuzz/c/std/cbor_fuzzer.c 2020-08-10 22:29:08 +10:00
Nigel Tao 2397d02997 Fix std/cbor UTF-8 strings aren't always ASCII 2020-08-10 22:27:40 +10:00
Nigel Tao 0091a2132d Have std/cbor reject tags before an 0xFF stop code 2020-08-10 21:39:37 +10:00
Nigel Tao 0b7eaf291b Add example/cbor-to-json 2020-08-09 23:03:42 +10:00
Nigel Tao 7a5e89115d Fix -Werror=conversion in std/json decode_tokens 2020-08-06 23:55:03 +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 137ca3ed73 Fix -Werror=conversion in std/cbor decode_tokens 2020-07-25 00:03:54 +10:00
Nigel Tao 5a616b6693 Have std/cbor parse floating point numbers 2020-07-24 23:54:52 +10:00
Nigel Tao c9e2010040 Tweak std/cbor TOKEN_VALUE_MINOR__ETC bits 2020-07-24 23:19:12 +10:00
Nigel Tao 042e94f304 Have std/cbor parse simple values 2020-07-24 23:14:27 +10:00
Nigel Tao 271680333e Have std/cbor parse tags 2020-07-24 15:54:44 +10:00
Nigel Tao f8dfc76310 Have std/cbor parse objects 2020-07-24 11:41:22 +10:00