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

Ensure all Fields and Strings get wrapped as FieldAnalysis and StringAnalysis respectivly when creating Analysis #1010

Merged
merged 9 commits into from Mar 10, 2024

Conversation

ehrenb
Copy link
Contributor

@ehrenb ehrenb commented Mar 9, 2024

Refer to: #989 (comment)

  • Add and wrap all fields in FieldAnalysis
  • Add and wrap strings in StringAnalysis
  • Update test_analysis.py unittest, because number of fields and strings returned are now increased
  • Various refactoring for consistency, adding new convenience functions

… If we make a new Analysis field attribute, none of the downstream XREF analysis will get propagated to it
…ions for getting FieldIdItems and MethodIdItems vs. EncodedFields and EncodedMethods, normalize variable names to be consistent where designs overlap, and create additional 'get_len_xxx()' functions for classes
…. fix failing test mentioned in androguard#989 so that it assumes testing for  wrapped fields.  make new tests for DEX-class level testing that tests counts of parsed values in the DEX header
…g when creating new ClassAnalysis instance. Similar to wrapping all fields into FieldAnalysis, also add and wrap all strings into StringAnalysis. Create explicit methods for getting internal/external methods. Updated expected outputs for test_analysis, as underlying implementations have changed
@ehrenb ehrenb marked this pull request as draft March 10, 2024 01:17
@ehrenb ehrenb marked this pull request as ready for review March 10, 2024 01:22
@erev0s erev0s merged commit 9f7a3c6 into androguard:master Mar 10, 2024
1 check passed
@erev0s
Copy link
Collaborator

erev0s commented Mar 10, 2024

@ehrenb great work done

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.

None yet

2 participants