Patrick Georgi
f563f32f82
Add SPDX identifier to license headers
...
SPDX is an ISO standard for describing licenses in a computer readable
format, which is useful when applying license compliance tools and the
like to source code.
In addition to ensuring that the Wuffs C distribution is properly
annotated to the benefit of projects using Wuffs and SPDX-supporting
tools, add it everywhere else where there's a license in this repo for
consistency, too.
2023-10-06 20:52:36 +02:00
Nigel Tao
74a6ea2fcd
all: relicense from Apache2 to dual Apache2/MIT
...
The LICENSE has changed from a single license (Apache2) to a dual
license (Apache2 or MIT, at your option).
If you've previously used Wuffs under the Apache2 license, you are able
to keep doing so. No further action required by you.
The two files listed below (previous releases) are exceptions, as they
are older snapshots, frozen in time. Their license has not changed:
release/c/wuffs-v0.2.c
release/c/wuffs-v0.3.c
Every name in the AUTHORS file, other than Google Inc., has signed
Google's CLA (Contributor License Agreement).
2023-10-06 10:00:59 +11:00
Nigel Tao
8e42e01d3c
std/gif: remove the std/lzw dependency
...
name old speed new speed delta
wuffs_gif_decode_1k_bw/clang11 683MB/s ± 0% 682MB/s ± 0% ~ (p=0.690 n=5+5)
wuffs_gif_decode_1k_color_full_init/clang11 168MB/s ± 0% 184MB/s ± 0% +10.01% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_part_init/clang11 204MB/s ± 0% 230MB/s ± 0% +12.77% (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/clang11 746MB/s ± 0% 819MB/s ± 0% +9.90% (p=0.008 n=5+5)
wuffs_gif_decode_10k_indexed/clang11 200MB/s ± 0% 218MB/s ± 0% +8.97% (p=0.008 n=5+5)
wuffs_gif_decode_20k/clang11 246MB/s ± 0% 257MB/s ± 0% +4.33% (p=0.008 n=5+5)
wuffs_gif_decode_100k_artificial/clang11 543MB/s ± 0% 562MB/s ± 0% +3.44% (p=0.008 n=5+5)
wuffs_gif_decode_100k_realistic/clang11 210MB/s ± 0% 220MB/s ± 0% +4.90% (p=0.008 n=5+5)
wuffs_gif_decode_1000k_full_init/clang11 214MB/s ± 0% 224MB/s ± 0% +4.96% (p=0.008 n=5+5)
wuffs_gif_decode_1000k_part_init/clang11 214MB/s ± 0% 224MB/s ± 0% +4.98% (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/clang11 1.24GB/s ± 0% 1.29GB/s ± 0% +3.85% (p=0.008 n=5+5)
wuffs_gif_decode_1k_bw/gcc10 649MB/s ± 0% 588MB/s ± 0% -9.42% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_full_init/gcc10 167MB/s ± 0% 198MB/s ± 0% +18.57% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_part_init/gcc10 195MB/s ± 0% 251MB/s ± 0% +28.64% (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/gcc10 753MB/s ± 0% 871MB/s ± 0% +15.64% (p=0.008 n=5+5)
wuffs_gif_decode_10k_indexed/gcc10 199MB/s ± 0% 233MB/s ± 0% +16.86% (p=0.008 n=5+5)
wuffs_gif_decode_20k/gcc10 258MB/s ± 0% 265MB/s ± 0% +2.93% (p=0.008 n=5+5)
wuffs_gif_decode_100k_artificial/gcc10 560MB/s ± 0% 561MB/s ± 0% +0.19% (p=0.008 n=5+5)
wuffs_gif_decode_100k_realistic/gcc10 221MB/s ± 0% 227MB/s ± 0% +2.65% (p=0.008 n=5+5)
wuffs_gif_decode_1000k_full_init/gcc10 227MB/s ± 0% 232MB/s ± 0% +2.29% (p=0.008 n=5+5)
wuffs_gif_decode_1000k_part_init/gcc10 227MB/s ± 0% 232MB/s ± 0% +2.28% (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/gcc10 1.29GB/s ± 0% 1.28GB/s ± 0% -0.22% (p=0.008 n=5+5)
2023-10-04 20:19:25 +11:00
Nigel Tao
7d4ef9c122
fuzz: let pixel_swizzler_fuzzer do 4 components
2023-08-22 16:31:38 +10:00
Nigel Tao
7cdeeadbf4
fuzz: fix pixel_swizzler_fuzzer build
2023-08-21 22:22:31 +10:00
Nigel Tao
94df43c530
std/jpeg: prepare for triangle-filter upsampling
2023-05-21 22:04:45 +10:00
Nigel Tao
382303a99d
fuzz: add jpeg_fuzzer.c
...
Updates #42
2023-05-15 12:22:26 +10:00
Nigel Tao
6e84987d33
std: change set_quirk_enabled to set_quirk
2023-04-14 21:42:15 +10:00
Nigel Tao
43ca567205
fuzz: check "short read" and io_reader.is_closed
...
Updates #96
2023-02-01 22:32:36 +11:00
Nigel Tao
b8d44be783
Touch fuzz/c/std/bzip2_fuzzer.c again
...
This undoes commit c1283e49 now that issue #79 was closed.
Updates #79
2022-06-24 13:32:04 +10:00
Nigel Tao
c1283e4989
Touch fuzz/c/std/bzip2_fuzzer.c
...
Updates #79
2022-06-20 19:13:40 +10:00
Nigel Tao
886e7f3e8f
Simplify fuzzers' io_buffer construction
2022-06-08 17:08:49 +10:00
Nigel Tao
fbc686f9b7
Add memrandomize to fuzz/c/fuzzlib
2022-06-08 17:06:59 +10:00
Nigel Tao
cda8b1950a
Add fuzz/c/std/bzip2_fuzzer.c
2022-05-18 00:15:40 +10:00
Nigel Tao
48e457204f
Add "./build-{example,fuzz}.sh" instructions
2022-01-19 14:58:40 +11:00
Nigel Tao
6d35660651
Add fuzz/c/std/tga_fuzzer.c
...
Updates #67
2022-01-15 14:53:41 +11:00
Nigel Tao
010e0a69f4
Fix fuzz seed_corpora for test filename rename
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41167
2021-11-20 17:58:08 +11:00
Nigel Tao
d5075c7e94
Push "int i" into "for (int i = etc; etc; etc)"
2021-11-02 14:07:58 +11:00
Nigel Tao
d259f7a579
Fix json_fuzzer for wuffs_aux::FooArgBar types
2021-10-18 00:46:50 +11:00
Nigel Tao
1a94a6f1b3
Choose fuzzer's static-ness on program vs library
...
Some sanitizers don't work well with static functions.
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39767
2021-10-10 10:46:05 +11:00
Nigel Tao
55784030e4
Have fuzzers use WUFFS_CONFIG__STATIC_FUNCTIONS
...
Compile time:
$ time ./build-fuzz.sh
Before: user 0m36.656s
After: user 0m18.534s
2021-10-07 14:26:08 +11:00
Nigel Tao
f7b1b87c70
Fix "-Wnarrowing -m32" warning for some fuzzers
2021-08-14 12:49:04 +10:00
Nigel Tao
13f2e44aca
Have JSON fuzzer segfault on internal errors
2021-08-13 17:45:23 +10:00
Nigel Tao
128d0386bd
Fuzz wuffs_aux::DecodeJson
2021-08-12 23:07:26 +10:00
Nigel Tao
d8796aa6d9
Add wuffs_base__uxx__rotate_etc functions
2021-06-28 09:59:32 +10:00
Nigel Tao
ec32eb3eb7
Add fuzz/c/std/gif_fuzzer.c quirks
2021-06-18 22:37:29 +10:00
Nigel Tao
13f9ecec68
Have pixel_swizzler_fuzzer use no-r/w guard pages
2021-03-22 23:20:30 +11:00
Nigel Tao
41bfcabd3a
Add fuzz/c/std/pixel_swizzler_fuzzer.c
2021-03-22 14:02:39 +11:00
Nigel Tao
3e5afc3e52
Remove png_fuzzer "smoke alarm test"
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31984
2021-03-13 13:39:35 +11:00
Nigel Tao
49c5692c32
Add png_fuzzer "smoke alarm test"
2021-03-11 11:05:20 +11:00
Nigel Tao
2f78804e62
Use more inclusive language
2021-01-23 19:50:47 +11:00
Nigel Tao
0de64ee8b7
Use WUFFS_BASE__QUIRK_IGNORE_CHECKSUM
2021-01-21 22:49:57 +11:00
Nigel Tao
1ff74749f0
Add fuzz/c/std/png_fuzzer.c
2020-12-28 15:58:05 +11:00
Nigel Tao
1c8f9280fd
Add fuzz/c/std/bmp_fuzzer.c
2020-12-15 22:25:21 +11:00
Nigel Tao
4346028a23
Factor out fuzz/c/fuzzlib/fuzzlib_image_decoder.c
2020-12-15 22:21:55 +11:00
Nigel Tao
bb7390261a
Have gif_fuzzer sometimes use a BGRA_PREMUL dst
2020-12-15 22:07:31 +11: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
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
d690ce7dce
Fix cbor_fuzzer for extended-token CBOR tags
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24946
2020-08-16 23:57:21 +10:00
Nigel Tao
c7b90256b3
Bump fuzzlib hash size from 32 to 64
...
Also have json_fuzzer choose at most one of the BACKSLASH_X quirks.
2020-08-10 22:56:47 +10:00
Nigel Tao
28ef6a7862
Add fuzz/c/std/cbor_fuzzer.c
2020-08-10 22:29:08 +10:00
Nigel Tao
9132dd6e2e
Fix json_fuzzer for QUIRK_ALLOW_BACKSLASH_X rename
2020-08-06 23:59:29 +10:00
Nigel Tao
702c7b299f
Let wuffs_base__utf_8__etc take ptr-to-const-u8
2020-07-22 15:42:54 +10:00
Nigel Tao
c510bc0c91
Roll forward 6a85e9a6
...
6a85e9a6a9 rolled back
a4527c359a "Update seed_corpora.txt".
The oss-fuzz build should be fixed by:
https://github.com/google/oss-fuzz/pull/3763
2020-05-06 14:22:51 +10:00
Nigel Tao
6a85e9a6a9
Roll back a4527c35
...
a4527c359a is "Update seed_corpora.txt".
This broke the oss-fuzz build:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22035
2020-05-06 10:42:56 +10:00
Muhammad Aldo Firmansyah
a4527c359a
Update seed_corpora.txt
...
Add more json corpus from simdjson_fuzz repo
2020-05-01 11:05:32 +07:00
Nigel Tao
496e88b6c5
Remove wuffs_base__token__link_prev
2020-04-09 22:11:08 +10:00
Nigel Tao
2ef3999d6d
Remove use of wuffs_base__token__link_prev
2020-04-09 17:24:39 +10:00
Nigel Tao
462f86675d
Add an "extended token" concept
2020-04-02 11:20:45 +11:00