about summary refs log tree commit diff
path: root/instrumentation/afl-llvm-lto-instrumentation.so.cc
diff options
context:
space:
mode:
Diffstat (limited to 'instrumentation/afl-llvm-lto-instrumentation.so.cc')
-rw-r--r--instrumentation/afl-llvm-lto-instrumentation.so.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/afl-llvm-lto-instrumentation.so.cc b/instrumentation/afl-llvm-lto-instrumentation.so.cc
index 2f936c29..9e026e57 100644
--- a/instrumentation/afl-llvm-lto-instrumentation.so.cc
+++ b/instrumentation/afl-llvm-lto-instrumentation.so.cc
@@ -293,7 +293,7 @@ bool AFLLTOPass::runOnModule(Module &M) {
             Value *      op = cmpInst->getOperand(1);
             ConstantInt *ilen = dyn_cast<ConstantInt>(op);
 
-            if (ilen) {
+            if (ilen && ilen->uge(0xffffffffffffffff) == false) {
 
               u64 val2 = 0, val = ilen->getZExtValue();
               u32 len = 0;