Petteri Aimonen
c571d7e88d
fuzztest_ioerrors: Combine test cases to improve performance.
...
This way the io error test will crash on either out of memory or
stream io error, whichever occurs first.
2020-08-13 11:03:59 +03:00
Petteri Aimonen
ddda911ff1
Fuzztest: speed up io errors test case
2020-08-10 11:20:13 +03:00
Petteri Aimonen
5ee87db566
Fuzztest: clean up compiler warnings
2020-08-07 13:50:46 +03:00
Petteri Aimonen
06c751665f
Build separate fuzzer test cases.
2020-08-07 13:27:25 +03:00
Petteri Aimonen
a70b9903fb
Fuzztest: allow selective enabling of single test cases
2020-08-03 12:01:58 +03:00
Petteri Aimonen
e766ef6715
fuzztest: compiler warning fixes
2020-06-24 13:17:50 +03:00
Petteri Aimonen
f057f61f71
Fuzztest: don't assert when re-encoding fills up the buffer.
...
Turns out the special case for 0-length input for fixed length bytes
field can cause a quite large message expansion on re-encode. The
assertion is not very useful for finding actual bugs, so this silences
it to avoid it disturbing fuzzing.
2020-03-14 11:35:11 +02:00
Petteri Aimonen
08b8c145d2
Avoid compiler warning in fuzztest
2020-02-01 21:21:10 +02:00
Petteri Aimonen
92e37ba2e1
Make fuzz test also check under low memory conditions.
2020-02-01 20:12:30 +02:00
Petteri Aimonen
e26928d8a1
Try to fix fuzztest issue on Windows.
...
The buffer length was a bit small so most of the corpus
messages wouldn't fit in it, causing pipe write to hang
until the process exited.
2020-02-01 15:35:37 +02:00
Petteri Aimonen
0de644acc0
Fuzztest: reduce memory usage (for AVR)
2020-01-19 21:34:05 +02:00
Petteri Aimonen
d89cd1e3f9
Fuzztest: fix spurious assert due to extension fields
2020-01-16 15:40:03 +02:00
Petteri Aimonen
33ca5c7b99
Fix errors in fuzztest testcase
2020-01-13 16:23:51 +02:00
Petteri Aimonen
de4d0f51f7
Fuzztest: include callback fields in test
2020-01-13 13:01:08 +02:00
Petteri Aimonen
0416d49e4f
Fuzztest: test pb_decode_ex flags
2020-01-13 12:40:50 +02:00
Petteri Aimonen
892bfd417a
Test also stream input in fuzz test.
2020-01-13 12:15:21 +02:00
Petteri Aimonen
e3b897bb80
Fuzztest: test extensions
2020-01-13 11:49:16 +02:00
Petteri Aimonen
89c1fa2507
Refactor fuzztest
2020-01-13 11:32:24 +02:00
Petteri Aimonen
84c9a1ce38
Fix assert in fuzztest due to input expansion.
2020-01-06 17:13:02 +02:00
Petteri Aimonen
561b085eb7
Fix fuzztest build for AVR
2020-01-02 16:36:52 +02:00
Petteri Aimonen
625e8a5881
Include proto3 messages in fuzztest.
2020-01-02 12:42:00 +02:00
Petteri Aimonen
9af4b46654
Hide fuzztest progress messages in normal test runs
2020-01-02 11:05:04 +02:00
Petteri Aimonen
87a53645f7
Switch to xorshift32 for fuzztest
...
Handling 64-bit seed values got annoying on AVR, and 32-bit
generator is enough for this test.
2019-12-31 13:13:18 +02:00
Petteri Aimonen
460d426aec
More descriptive errors from AVR test cases
2019-12-31 11:30:26 +02:00
Petteri Aimonen
030ae0477f
Reduce memory usage in fuzztest for AVR.
2019-12-31 10:28:12 +02:00
Petteri Aimonen
96bf1fec3c
Update dependent test cases for new tag number in AllTypes
2019-12-29 16:41:52 +02:00
Petteri Aimonen
885b011c09
Print errors when assert() fired in fuzztest
2019-12-19 08:03:07 +02:00
Petteri Aimonen
4a48bfe0b5
AVR build fix
2019-12-19 07:53:32 +02:00
Petteri Aimonen
a32a8a2fdc
Fix buffer length for LLVM fuzzer stub.
...
Previously the stub would accept unlimited length input and assert()
when it wouldn't fit in 4kB buffer. Increased buffer length to 64kB
and made it refuse too long inputs properly.
2019-12-18 23:40:47 +02:00
Petteri Aimonen
0ed1c48711
More libFuzzer fixes
2019-12-18 09:51:13 +02:00
Petteri Aimonen
1f2c18e8be
Fix warnings when building for libFuzzer
2019-12-18 09:43:47 +02:00
Petteri Aimonen
43d677d554
Add mode for LLVM libFuzzer
2019-12-18 09:16:54 +02:00
Petteri Aimonen
649ad0be54
Fuzztest: AVR doesnt have enough RAM for 4kB buffers
2019-12-17 10:35:19 +02:00
Petteri Aimonen
63885b12d9
Small changes for OSSFuzz integration
2019-12-17 10:15:52 +02:00
Petteri Aimonen
f3791111c9
Fix build error
2019-12-17 09:51:11 +02:00
Petteri Aimonen
8572963fa9
Update and clean up fuzztest/fuzzstub
2019-12-17 09:43:08 +02:00
Petteri Aimonen
4707fb9f79
Fuzztest: less iterations for embedded targets
2019-12-15 18:53:11 +02:00
Petteri Aimonen
ffb75545f4
Improve fuzztest checks
2019-12-15 18:05:04 +02:00
Petteri Aimonen
186ee03dd3
Make fuzztest detect invalid bool values ( #434 )
2019-10-02 11:16:51 +03:00
Petteri Aimonen
3af7d0910b
Add testcase for issue #205
2016-06-06 21:00:59 +03:00
Petteri Aimonen
8a28b70351
Move malloc_wrappers.c to tests/common
2014-12-26 17:08:17 +02:00
Petteri Aimonen
0dce9ef635
Add a better fuzz test.
...
Attempts to verify all the properties defined in the security model,
while also being portable and able to run on many platforms.
2014-09-11 19:22:57 +03:00