Check if variable is BitVec before copying annotations

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

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

Loading…
Cancel
Save