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

Unable to recognize ABI for void functions in IDA #79

Open
icecr4ck opened this issue Aug 14, 2018 · 2 comments
Open

Unable to recognize ABI for void functions in IDA #79

icecr4ck opened this issue Aug 14, 2018 · 2 comments

Comments

@icecr4ck
Copy link
Contributor

Hello,

It seems Sibyl (the IDA stub) is unable to recognize the ABI when it finds void functions in IDA.

I believe this issue could be resolved in modifying the gtype_matcher regex as the latter tries to match the keyword before the function arguments.

# int __cdecl(int, int) -> __cdecl
gtype_matcher = re.compile(".+ ([^\(]+)\([^\)]*\)")

Maybe this issue could occur with another keywords. As a reminder, the IDA functions types are defined here: https://www.hex-rays.com/products/ida/support/idadoc/1361.shtml

@commial
Copy link
Contributor

commial commented Aug 14, 2018

Hi,

Thanks for reporting it. I've not been able to reproduce your bug, can you paste here the result of "idc.GuessType(FAULTY_FUNC_ADDR)"?
On a void function, I obtain (for instance): void __thiscall(...) which is correctly matched and parsed.

Thanks in advance

@icecr4ck
Copy link
Contributor Author

No problem, here is what I get for the faulty function.

void __stdcall __noreturn(LPVOID lpThreadParameter)

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

No branches or pull requests

2 participants