-
Notifications
You must be signed in to change notification settings - Fork 611
Makes string length configurable and consistent across backends. Closes #1303 #2678
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
Open
Shajal-Kumar
wants to merge
18
commits into
mandiant:master
Choose a base branch
from
Shajal-Kumar:i1303
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f26d321
added default string length and changed n to min_len in strings.py
Shajal-Kumar 59ef086
added min_str_len argument to common.py
Shajal-Kumar 0649227
added ctx to elffile.py
Shajal-Kumar 68d59cd
added ctx to pefile.py and made minor changes to elffile.py
Shajal-Kumar bb8ad59
fixed argument related issues and added ctx to pefile.py
Shajal-Kumar fa234a6
added minimum string length functionality to loader.py and main.py. A…
Shajal-Kumar eaa62c6
added minimum string length functionality to the Viv Extractor
Shajal-Kumar bb19023
Added min_str_len and context dictionary to dnfile
Shajal-Kumar a3071fd
Added min_str_len and context dictionary to ida.
Shajal-Kumar ddbbacd
Updated tests/fixtures.py to incorporate DEFAULT_STRING_LENGTH
Shajal-Kumar b19cb70
Fixed dotnetfile.py, fixed issues with vmrayextractor, added ctx base…
Shajal-Kumar df5aa67
Fixed dnfile to check if the parameter being passed is a dictionary o…
Shajal-Kumar 666501e
Fixed failing tests.
Shajal-Kumar 954f7a2
Passes all tests. Fixes linting issues.
Shajal-Kumar d64d4f7
Merge branch 'mandiant:master' into master
Shajal-Kumar 0d49215
Adds test to validate the changes related to the issue to test_string…
Shajal-Kumar 4129c09
Updates changelog.
Shajal-Kumar 265e6c8
Removes large files from PR.
Shajal-Kumar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like
DEFAULT_STRING_LENGTH
is used here, but theDotnetFileFeatureExtractor
is initialized withmin_str_len
(which is stored asself.min_str_len
).Should this be using
self.min_str_len
to ensure the configured minimum string length is respected for file feature extraction in this extractor, similar to how it's handled in other extractors likePefileFeatureExtractor
orElfFeatureExtractor
?