diff options
| author | peter <peter@pmikkelsen.com> | 2026-10-04 18:13:16 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-10-04 18:13:16 +0000 |
| commit | ab9f55b03c670628d87323d636f86322147e5e40 (patch) | |
| tree | b2ab72459d6df4ef048d8746b43237c1c5f8d46a /tests | |
| parent | 17285405af9f0289f271ba4ca9f18c164ad2bd90 (diff) | |
The UTF-8 code had two NEVERs which didn't make sense.
FossilOrigin-Name: 1be20afeb238bc7c9ca36b903378d6236af521855cfe76fe59ee39f22a7533ff
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/aplwc_utf8.c | 4 | ||||
| -rw-r--r-- | tests/fuzz-crashes/2.fuzz | bin | 26 -> 0 bytes | |||
| -rw-r--r-- | tests/fuzz-crashes/3.fuzz | 5 | ||||
| -rw-r--r-- | tests/fuzz-crashes/4.fuzz | 4 | ||||
| -rw-r--r-- | tests/fuzz-crashes/5.fuzz | bin | 38 -> 0 bytes | |||
| -rw-r--r-- | tests/fuzz-crashes/Makefile.am | 1 |
6 files changed, 3 insertions, 11 deletions
diff --git a/tests/aplwc_utf8.c b/tests/aplwc_utf8.c index 44dd85a..7d14778 100644 --- a/tests/aplwc_utf8.c +++ b/tests/aplwc_utf8.c @@ -28,6 +28,7 @@ uint8_t bad4[] = {0xc0,0x40,0}; uint8_t bad5[] = {0xe0,0x80,0x80,0}; uint8_t bad6[] = {0xc0,0}; uint8_t bad7[] = {0xF0,0x80,0x80,0x80,0}; +uint8_t bad8[] = {0xF7,0xBF,0xBF,0xBF,0}; uint8_t good1[] = {0x61,0x70,0x6c,0x77,0x63,0}; uint8_t good2[] = {0x41,0xe2,0x89,0xa2,0xce,0x91,0x2e,0}; @@ -65,7 +66,8 @@ main(void) bad4, bad5, bad6, - bad7 + bad7, + bad8 }; uint8_t *good_tests[] = { diff --git a/tests/fuzz-crashes/2.fuzz b/tests/fuzz-crashes/2.fuzz Binary files differdeleted file mode 100644 index bd8af68..0000000 --- a/tests/fuzz-crashes/2.fuzz +++ /dev/null diff --git a/tests/fuzz-crashes/3.fuzz b/tests/fuzz-crashes/3.fuzz deleted file mode 100644 index ed1bb89..0000000 --- a/tests/fuzz-crashes/3.fuzz +++ /dev/null @@ -1,5 +0,0 @@ -#0000%00000000 - -:m::00=00 :::::::::0::!<00= - -:m80ø÷¥ˆ‡ diff --git a/tests/fuzz-crashes/4.fuzz b/tests/fuzz-crashes/4.fuzz deleted file mode 100644 index 0ad1632..0000000 --- a/tests/fuzz-crashes/4.fuzz +++ /dev/null @@ -1,4 +0,0 @@ -#!000000000000H0 - -:exmbol ylu'''000000ñ±±±ñ±±±/00000ñ±±±÷±¶±' ->?>'s 00 diff --git a/tests/fuzz-crashes/5.fuzz b/tests/fuzz-crashes/5.fuzz Binary files differdeleted file mode 100644 index 0161596..0000000 --- a/tests/fuzz-crashes/5.fuzz +++ /dev/null diff --git a/tests/fuzz-crashes/Makefile.am b/tests/fuzz-crashes/Makefile.am index d332083..e69de29 100644 --- a/tests/fuzz-crashes/Makefile.am +++ b/tests/fuzz-crashes/Makefile.am @@ -1 +0,0 @@ -TEST_INPUTS += tests/fuzz-crashes/2.fuzz tests/fuzz-crashes/3.fuzz tests/fuzz-crashes/4.fuzz tests/fuzz-crashes/5.fuzz |