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

Improve function pointer identification #309

Open
travitch opened this issue Aug 2, 2022 · 0 comments
Open

Improve function pointer identification #309

travitch opened this issue Aug 2, 2022 · 0 comments
Labels
discovery Issues related to the code discovery logic enhancement

Comments

@travitch
Copy link
Contributor

travitch commented Aug 2, 2022

There is currently a simple heuristic in macaw for identifying function pointers (to be used as additional roots for code discovery): any values written to memory that look like function pointers (i.e., within the bounds of an executable memory segment) are treated as function pointers.

This heuristic performs badly for PIC code, where most code addresses are small integer values.

We need to do something more sophisticated with some combination of pointer analysis and type inference. This will depend on implementing a solution to #298.

@travitch travitch added enhancement discovery Issues related to the code discovery logic labels Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discovery Issues related to the code discovery logic enhancement
Projects
None yet
Development

No branches or pull requests

1 participant