25 Commits
Author SHA1 Message Date
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 43ca567205 fuzz: check "short read" and io_reader.is_closed
Updates #96
2023-02-01 22:32:36 +11: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 d5075c7e94 Push "int i" into "for (int i = etc; etc; etc)" 2021-11-02 14:07:58 +11: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 f909c69deb Have fuzz/* global variable names start with g_ 2020-03-26 14:49:43 +11:00
Nigel Tao 6892095998 Have C programs handle flags consistently 2020-03-03 11:25:18 +11:00
Nigel Tao b10460f643 Add a fuzz/c --color flag 2020-03-01 14:09:40 +11:00
Nigel Tao 21682f403f Add fuzz/c/std/json_fuzzer.c 2020-03-01 12:01:42 +11:00
Nigel Tao 2914bae3b2 Re-format C function signatures 2020-02-26 09:40:30 +11:00
Nigel Tao 9cc2c25f3d Have different exit codes for errors vs exceptions 2020-02-23 17:05:49 +11:00
Nigel Tao aa846d2dd7 Remove io_{reader,writer} C types 2019-07-06 17:23:34 +10:00
Nigel Tao 77c778fb2e Let fuzzers recurse into directories 2019-02-16 11:59:41 +11:00
Nigel Tao e9709992e2 Have the fuzzers check for internal errors 2019-02-02 12:08:44 +11:00
Nigel Tao 6fed251b40 Split an io_buffer's fields into data and meta 2018-09-15 08:45:50 +10:00
Nigel Tao a0bafff465 Ship as a "single file C library" 2018-07-14 08:59:36 +10:00
Nigel Tao 25a106903f Have include guards start with WUFFS_INCLUDE_GUARD 2018-06-16 08:10:22 +10:00
Nigel Tao df96e48341 Rename some #ifndef WUFFS_BASE_HEADER_H guards 2018-06-10 09:37:30 +10:00
Nigel Tao db308f1045 Make the fuzz harness print status messages 2018-05-03 09:03:48 +10:00
Nigel Tao 2a97a1ad29 Edit fuzz' .c files to be C, not C++ 2018-05-03 08:15:29 +10:00
Nigel Tao 5ad9055572 Copy fuzz' .cc files as .c files 2018-05-03 08:10:25 +10:00
Nigel Tao b182db372a Make fuzzers C++ programs, not C
Using https://github.com/google/oss-fuzz on .c files says:

clang-7.0: warning: treating 'c' input as 'c++' when in C++ mode, this
behavior is deprecated [-Wdeprecated]
2018-02-17 15:41:21 +11:00
Nigel Tao b23c235067 Add fuzz tests 2018-02-17 14:14:38 +11:00