fix x64 rip relative instruction eval

This commit is contained in:
Anatoly Korniltsev 2020-03-16 12:27:59 +03:00
parent b349141547
commit c5eeb8e84a
1 changed files with 4 additions and 1 deletions

View File

@ -372,7 +372,10 @@ class CsInsn(object):
raise IgnoredRegister(exp)
if exp in reginfo: #it's a register
return reginfo[exp]
if exp == 'rip':
return reginfo[exp] + self.i.size
else:
return reginfo[exp]
try:
return int(exp, 16)