5 Commits

Author SHA1 Message Date
DavidKorczynski
cc0f2c9064
fuzz: update libfuzzer dependency
This is intended to fix an OSS-fuzz build failure detailed here:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32817

Fixes #757
2021-04-08 10:43:47 -04:00
DavidKorczynski
a7ef5f452e
fuzz: fix release profile
I had to apply these changes for OSS-Fuzz to continue working.
Specifically I needed to add `cargo-features = ['named-profiles']` and
`inherits` for any profile other than `release`. However, I have also
confirmed now that the building is done with optimized + debuginfo
in OSS-Fuzz (`Finished release [optimized + debuginfo] target(s) in
37.59s`).
2020-10-14 08:55:21 -04:00
Andrew Gallant
44abc5f7c6
fuzz: enable optimizations in other profiles
The problem was that the fuzzer wasn't running with optimizations, which
means it was likely compiled in debug mode. So setting the optimization
level on the release profile won't do any good. Instead, we set it on
the debug and test profiles, which should cover it.
2020-10-13 19:21:47 -04:00
Andrew Gallant
9067dfd7e1
fuzz: compile fuzzer in release mode
Otherwise, it's pretty easy to generate regexes that are under the size
limit but take longer than the 60 second timeout in the fuzzer.

This is in response to this bug:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26324

Actual fuzz test output:
https://oss-fuzz.com/testcase-detail/5673225499181056
2020-10-13 19:15:52 -04:00
davkor
2f9103e6bf fuzz: add fuzzing infrastructure for OSS-Fuzz
Closes #679
2020-10-11 20:08:30 -04:00