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

Use standard golang.org/x/tools/go/callgraph package #24

Merged
merged 5 commits into from
Jan 4, 2024

Conversation

picatz
Copy link
Owner

@picatz picatz commented Jan 4, 2024

This PR deprecates (by outright removing) the non-standard github.com/picatz/taint/callgraph package in favor of using the standard golang.org/x/tools/go/callgraph package.

To keep the same functionality (like graph construction and path searching) provided by the previous callgraph package, a github.com/picatz/taint/callgraphutils package has been created which operates on golang.org/x/tools/go/callgraph.Graph types.

Importantly, this allows for seamless "apples to apples" comparisons with other call graph construction algorithms (CHA, RTA, VTA, Static, Pointer), or even those provided by projects like govulncheck.

Today, I believe the graph constructed by github.com/picatz/taint/callgraphutils.NewGraph provides the best foundation for taint analysis. I look forward to progress in this space in the near future to handle complex edges (#23) not easily handled by today's algorithm(s).

@picatz picatz merged commit 8a457f3 into main Jan 4, 2024
1 check passed
@picatz picatz deleted the use-standard-callgraph-pkg branch January 4, 2024 20:22
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

Successfully merging this pull request may close these issues.

1 participant