-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why CodeRefsTo() excludes all call type cross-references #72
Comments
can you provide a short snippet and/or test case that demonstrates this behavior in IDA? maybe use https://github.com/williballenthin/python-idb/tree/master/tests/data/v7.0b/x32 as a base. |
i dont recall off the top of my head, but since i left a comment there, i must have had a reason for it. |
Idb file: https://github.com/williballenthin/python-idb/tree/master/tests/data/v7.0b/x64/kernel32.i64 Python>list(idautils.CodeRefsTo(0x689043FC, 1))
[1754272045L, 1754296595L, 1754298927L, 1754299150L, 1754301314L, 1754312995L, 1754324259L, 1754334441L, 1754334461L, 1754334481L, 1754334501L, 1754334521L, 1754334541L, 1754334561L, 1754334574L, 1754446169L, 1754461433L, 1754480879L, 1754481688L, 1755015188L, 1755015214L, 1755015947L, 1755043500L, 1755058146L] However, in python-idb: In [3]: with idb.from_file('./kernel32.i64') as db:
...: api = idb.IDAPython(db)
In [4]: list(api.idautils.CodeRefsTo(0x689043FC, 1))
Out[4]: [] Actually, all callees can't get their callers using |
@bjchan9an could you please send a pull request? |
I found that the implementation of
CodeRefsTo()
excludes allcall
type cross-references, which is inconsistent with the results ofCodeRefsTo()
I observed in IDA Pro 7.0.The text was updated successfully, but these errors were encountered: