File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5002,7 +5002,8 @@ def recover_plt(text,arch):
5002
5002
text += red (code [0 ]) + "\n "
5003
5003
for line in code [1 :]:
5004
5004
text += " %s\n " % line .strip ()
5005
- text += red ("JUMP is taken" .rjust (79 ))
5005
+ if "ret" not in opcode :
5006
+ text += red ("JUMP is taken" .rjust (79 ))
5006
5007
else :
5007
5008
text += format_disasm_code (peda .disassemble_around (pc , count ), pc )
5008
5009
text += "\n " + green ("jump is not taken" .rjust (79 ))
@@ -5039,7 +5040,8 @@ def recover_plt(text,arch):
5039
5040
text += red (code [0 ]) + "\n "
5040
5041
for line in code [1 :]:
5041
5042
text += " %s\n " % line .strip ()
5042
- text += red ("JUMP is taken" .rjust (79 ))
5043
+ if "ret" not in opcode :
5044
+ text += red ("JUMP is taken" .rjust (79 ))
5043
5045
else : # JUMP is NOT taken
5044
5046
text += format_disasm_code (peda .disassemble_around (pc , count ), pc )
5045
5047
text += "\n " + green ("JUMP is NOT taken" .rjust (79 ))
You can’t perform that action at this time.
0 commit comments