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

Package tree data structure #1

Open
0xddom opened this issue Aug 13, 2020 · 0 comments
Open

Package tree data structure #1

0xddom opened this issue Aug 13, 2020 · 0 comments
Assignees

Comments

@0xddom
Copy link
Member

0xddom commented Aug 13, 2020

libRadar uses a tree structure to hold the classes according to the package they belong. This tree also generates the hash and the score of the library recursively.

In my mind (and inspired by the reference implementation) the module should have a public struct that acts as a public API and the actual tree is defined recursively using a private struct.

We have to generate a tree for each dex that we are handling, so it must receive a Dex as input parameter along with the api set that is used to calculate the score of each node in the tree.

The leaf nodes should contain classes and the root nodes represent the java packages.

@Alfedi Alfedi self-assigned this Aug 18, 2020
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

2 participants