mirror of
https://github.com/geohot/qira
synced 2024-12-25 05:26:58 +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)
|
raise IgnoredRegister(exp)
|
||||||
|
|
||||||
if exp in reginfo: #it's a register
|
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:
|
try:
|
||||||
return int(exp, 16)
|
return int(exp, 16)
|
||||||
|
Loading…
Reference in New Issue
Block a user