Check if variable is BitVec before copying annotations

pull/1029/head
Bernhard Mueller 6 years ago
parent 676e894d0c
commit 2a6b282eca
  1. 3
      mythril/laser/ethereum/instructions.py

@ -946,7 +946,8 @@ class Instruction:
annotations = [] annotations = []
for b in state.memory[index : index + length]: for b in state.memory[index : index + length]:
annotations.append(b.annotations) if isinstance(b, BitVec):
annotations.append(b.annotations)
argument_str = str(state.memory[index]).replace(" ", "_") argument_str = str(state.memory[index]).replace(" ", "_")
result = symbol_factory.BitVecFuncSym( result = symbol_factory.BitVecFuncSym(

Loading…
Cancel
Save