Add OSS-Fuzz Zeek script search path to fuzzers

This commit is contained in:
Jon Siwek 2020-04-24 17:53:01 -07:00
parent a4244bc72b
commit 98845e89aa
4 changed files with 57 additions and 32 deletions

View file

@ -346,6 +346,14 @@ std::string normalize_path(std::string_view path);
*/
std::string without_bropath_component(std::string_view path);
/**
* Gets the full path used to invoke some executable.
* @param invocation any possible string that may be seen in argv[0], such as
* absolute path, relative path, or name to lookup in PATH.
* @return the absolute path to the executable file
*/
std::string get_exe_path(const std::string& invocation);
/**
* Locate a file within a given search path.
* @param filename Name of a file to find.