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

Hashing syntax nodes with children #41

Open
robobenklein opened this issue Feb 13, 2023 · 1 comment
Open

Hashing syntax nodes with children #41

robobenklein opened this issue Feb 13, 2023 · 1 comment
Assignees

Comments

@robobenklein
Copy link
Member

Take a function nodes, iterate it's children, create a list (string?) of node types in-order or preorder.

This essentially creates a "hash" of a class/function node that should have other matches across blobs with different hashes, allowing cross-project code reuse identification.

@robobenklein robobenklein self-assigned this Feb 13, 2023
@robobenklein
Copy link
Member Author

Notably: find hashes of functions with known vulns, which blob it belongs to, and find instances of revisions and/or projects still using the old / vulnerable function.

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