about summary refs log tree commit diff
path: root/instrumentation/SanitizerCoverageLTO.so.cc
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-03-31 11:02:27 +0200
committervanhauser-thc <vh@thc.org>2023-03-31 11:02:27 +0200
commitbe96253f5293a0446aae8b2f1795119456c0d5d5 (patch)
treed6a3cbe6672da61d21462dc52aa522cfa0242e30 /instrumentation/SanitizerCoverageLTO.so.cc
parent2d0d1e267eac4723c24997116c959472aae7027f (diff)
downloadafl++-be96253f5293a0446aae8b2f1795119456c0d5d5.tar.gz
nits
Diffstat (limited to 'instrumentation/SanitizerCoverageLTO.so.cc')
-rw-r--r--instrumentation/SanitizerCoverageLTO.so.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/instrumentation/SanitizerCoverageLTO.so.cc b/instrumentation/SanitizerCoverageLTO.so.cc
index 85f13c19..9691f17f 100644
--- a/instrumentation/SanitizerCoverageLTO.so.cc
+++ b/instrumentation/SanitizerCoverageLTO.so.cc
@@ -431,6 +431,8 @@ bool ModuleSanitizerCoverageLTO::instrumentModule(
     if ((afl_global_id = atoi(ptr)) < 0)
       FATAL("AFL_LLVM_LTO_STARTID value of \"%s\" is negative\n", ptr);
 
+  if (afl_global_id < 4) { afl_global_id = 4; }
+
   if ((ptr = getenv("AFL_LLVM_DOCUMENT_IDS")) != NULL) {
 
     dFile.open(ptr, std::ofstream::out | std::ofstream::app);