diff options
author | van Hauser <vh@thc.org> | 2024-10-20 09:23:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-20 09:23:56 +0200 |
commit | 7f614be3a555435421465e35536e70ff9c960a79 (patch) | |
tree | cf8bdb2cb14151e90bc8016203405b44501dd2e7 /instrumentation/afl-gcc-pass.so.cc | |
parent | 8a060a4b68a0aa1c812916bcbcf4bf3424854124 (diff) | |
parent | 04d2476b324f5c6124c665b24989d15dd61f0f2b (diff) | |
download | afl++-7f614be3a555435421465e35536e70ff9c960a79.tar.gz |
Merge pull request #2229 from g0ku704/feat/disable_gcc_version_check
Introduce `AFL_GCC_DISABLE_VERSION_CHECK` to disable GCC version check
Diffstat (limited to 'instrumentation/afl-gcc-pass.so.cc')
-rw-r--r-- | instrumentation/afl-gcc-pass.so.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/instrumentation/afl-gcc-pass.so.cc b/instrumentation/afl-gcc-pass.so.cc index 41b1e5af..26f7bd19 100644 --- a/instrumentation/afl-gcc-pass.so.cc +++ b/instrumentation/afl-gcc-pass.so.cc @@ -478,7 +478,8 @@ Specify -frandom-seed for reproducible instrumentation.\n\ int plugin_init(struct plugin_name_args *info, struct plugin_gcc_version *version) { - if (!plugin_default_version_check(version, &gcc_version)) + if (!plugin_default_version_check(version, &gcc_version) && + !getenv("AFL_GCC_DISABLE_VERSION_CHECK")) FATAL(G_("GCC and plugin have incompatible versions, expected GCC %s, " "is %s"), gcc_version.basever, version->basever); |