about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraflpp <aflpp@aflplus.plus>2020-09-22 02:04:23 +0200
committeraflpp <aflpp@aflplus.plus>2020-09-22 02:04:23 +0200
commit093754f6bfaaaac0ace8f223ff37cdd30b658b9e (patch)
tree8d274ac4b214723d79785030e2666674531c1975
parent207cbd5cf7c1956969f42e89bfcb9a0ab451e351 (diff)
downloadafl++-093754f6bfaaaac0ace8f223ff37cdd30b658b9e.tar.gz
dict2file fix for integers > 64 bit
-rw-r--r--instrumentation/afl-llvm-dict2file.so.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/afl-llvm-dict2file.so.cc b/instrumentation/afl-llvm-dict2file.so.cc
index 15accc88..abf8e868 100644
--- a/instrumentation/afl-llvm-dict2file.so.cc
+++ b/instrumentation/afl-llvm-dict2file.so.cc
@@ -195,7 +195,7 @@ bool AFLdict2filePass::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;