oss-fuzz/infra/build/functions/test_data
DavidKorczynski beef253ac7
infra: build: functions: cut corpus directory by last period (#9302)
When a corpus zip file is unzipped the destination folder is set to be
the directory corresponding to the filepath of the zip file but without
".zip" in the name. This is achieved by `for f in /corpus/*.zip; do
unzip -q $f -d ${f%%.*}` where `f%%.*` substitutes the path of `f` based
on the first occurrence of ".". This causes some issues with fuzztest
fuzzers where a fuzzer name always has a "." in it, e.g.

`escaping_test@EscapingTest.EscapingAStringNeverTriggersUndefinedBehavior`

Substituting the name in this way causes issues for some coverage builds
e.g.
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53479

This changes it to substiute based on the last occurrence of ".", i.e.
just cutting off the ".zip".

Alternatively, we could substitute over
e.g. ".zip", however, this may cause some issues as a fuzztest fuzzer
may have ".zip" in the name.

Signed-off-by: David Korczynski <david@adalogics.com>

Signed-off-by: David Korczynski <david@adalogics.com>
2023-01-04 09:52:09 +11:00
..
expected_build_steps.json [build-infra] bad build check using --privileged,--cap-add=all to enable netdriver (#8871) 2022-10-27 08:19:21 -04:00
expected_centipede_build_steps.json [build-infra] bad build check using --privileged,--cap-add=all to enable netdriver (#8871) 2022-10-27 08:19:21 -04:00
expected_coverage_build_steps.json infra: build: functions: cut corpus directory by last period (#9302) 2023-01-04 09:52:09 +11:00
expected_trial_build_steps.json [build-infra] bad build check using --privileged,--cap-add=all to enable netdriver (#8871) 2022-10-27 08:19:21 -04:00