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

Add static analysis when no context is available #10

Open
ampotos opened this issue Aug 25, 2016 · 0 comments
Open

Add static analysis when no context is available #10

ampotos opened this issue Aug 25, 2016 · 0 comments

Comments

@ampotos
Copy link
Owner

ampotos commented Aug 25, 2016

For some accesses the context instruction does not provide any context. When it's the case for every access of a member the type stay the default one.

The data gatherer will not record more instructions, but dynStruct.py can do a bit of static analysis for member with a default type. The idea here is to check the isntructions and the context isntruction are really the same (if not it can be auto-modifying code and in that case stop the static analysis). If they are the same looking maximum X instructions before/after (depending if it is a read or a write access) to see if some context may be available and use it for recovering the type of the member.

The main issue here will be to follow the execution flow of the function (especially backward) maybe limiting the static analysis to the basic block containing the access is a good start.

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

1 participant