Merge pull request #1148 from ConsenSys/fix/symbolic_dos

Avoid symbolic targets
pull/1149/head
Bernhard Mueller 5 years ago committed by GitHub
commit 47a308fa39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      mythril/analysis/modules/dos.py

@ -80,9 +80,11 @@ class DosModule(DetectionModule):
if annotation.loop_start is not None:
return []
try:
target = util.get_concrete_int(state.mstate.stack[-1])
except TypeError:
log.debug("Symbolic target encountered in dos module")
return []
if target in annotation.jump_targets:
annotation.jump_targets[target] += 1
else:

Loading…
Cancel
Save