mirror of
https://github.com/geohot/qira
synced 2024-12-24 13:06:48 +03:00
fix x64 rip relative instruction eval
This commit is contained in:
parent
b349141547
commit
c5eeb8e84a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user