mirror of
https://github.com/red0124/ssp.git
synced 2025-04-20 10:37:57 +02:00
[skip ci] Try failing fuzz
This commit is contained in:
parent
6b924533a0
commit
70f141181c
@ -69,10 +69,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
|||||||
using trim = ss::trim<' ', '\t'>;
|
using trim = ss::trim<' ', '\t'>;
|
||||||
using multiline_r = ss::multiline_restricted<5>;
|
using multiline_r = ss::multiline_restricted<5>;
|
||||||
|
|
||||||
if (size == 1234) {
|
|
||||||
throw "...";
|
|
||||||
}
|
|
||||||
|
|
||||||
test_ssp<>(data, size);
|
test_ssp<>(data, size);
|
||||||
test_ssp<escape>(data, size);
|
test_ssp<escape>(data, size);
|
||||||
test_ssp<quote>(data, size);
|
test_ssp<quote>(data, size);
|
||||||
@ -81,5 +77,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
|||||||
test_ssp<escape, quote, multiline_r, trim>(data, size);
|
test_ssp<escape, quote, multiline_r, trim>(data, size);
|
||||||
test_ssp<escape, quote, multiline_r, trim, ss::ignore_empty>(data, size);
|
test_ssp<escape, quote, multiline_r, trim, ss::ignore_empty>(data, size);
|
||||||
|
|
||||||
|
if (size > 1000) {
|
||||||
|
throw "...";
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user