mirror of https://github.com/google/oss-fuzz.git
[infra] Make `targets_list` detect JVM/Python targets (#5775)
* [infra] Make `targets_list` detect JVM/Python targets `targets_list` should not detect `jazzer_driver` and `jazzer_driver_asan` as fuzz targets, but should consider shell scripts that contain `LLVMFuzzerTestOneInput`. @inferno-chromium This should fix https://github.com/google/oss-fuzz/pull/5770#issuecomment-841851786. * Fix
This commit is contained in:
parent
3895320c7f
commit
88f76bc641
|
@ -2,7 +2,8 @@
|
|||
|
||||
for binary in $(find $OUT/ -executable -type f); do
|
||||
[[ "$binary" != *.so ]] || continue
|
||||
file "$binary" | grep ELF > /dev/null 2>&1 || continue
|
||||
[[ $(basename "$binary") != jazzer_driver* ]] || continue
|
||||
file "$binary" | grep -e ELF -e "shell script" > /dev/null 2>&1 || continue
|
||||
grep "LLVMFuzzerTestOneInput" "$binary" > /dev/null 2>&1 || continue
|
||||
|
||||
basename "$binary"
|
||||
|
|
Loading…
Reference in New Issue