mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
fuzzer-setup: Update ZEEKPATH to align with DEFAULT_ZEEKPATH
The util-config.h file uses @DEFAULT_ZEEKPATH@ which includes the builtin-plugins directory. Do the same change for the fuzzers so that scripts from builtin plugins can be found. Fixes #2540
This commit is contained in:
parent
c853555bf4
commit
15502f8e18
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
|
|||
auto fuzzer_dir = zeek::util::SafeDirname(fuzzer_path).result;
|
||||
std::string fs = zeek::util::fmt("%s/%s", fuzzer_dir.data(), oss_fuzz_scripts);
|
||||
auto p = fs.data();
|
||||
auto oss_fuzz_zeekpath = zeek::util::fmt(".:%s:%s/policy:%s/site", p, p, p);
|
||||
auto oss_fuzz_zeekpath = zeek::util::fmt(".:%s:%s/policy:%s/site:%s/builtin-plugins", p, p,
|
||||
p, p);
|
||||
|
||||
if ( setenv("ZEEKPATH", oss_fuzz_zeekpath, true) == -1 )
|
||||
abort();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue