Skip to content
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

IDA 7.0+ wpsearch takes uval_t type #29

Open
zaratec opened this issue Sep 13, 2019 · 0 comments
Open

IDA 7.0+ wpsearch takes uval_t type #29

zaratec opened this issue Sep 13, 2019 · 0 comments

Comments

@zaratec
Copy link

zaratec commented Sep 13, 2019

https://github.com/devttys0/ida/blob/8b94e920b1d971808fa4ebcb84b0b120677be320/scripts/wpsearch.py#L58

find_imm in IDA 7.0+ API expects the third argument (value to search) as a uval_t instead of sval_t. FindImmediate can take immediate without getting its two's complement.

Change the line to
(ea, n) = idc.FindImmediate(ea, idc.SEARCH_DOWN, immediate)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant