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

dnfile 0.15.0 changed API #2037

Merged
merged 7 commits into from
Jun 11, 2024
Merged

Conversation

malwarefrank
Copy link
Contributor

dnfile v0.15.0 contains a breaking change. The heap streams' .get() functions now return custom container objects instead of bytes.

I think I changed the necessary parts to keep same functionality, but am not definite. If necessary, feel free to close this PR and handle as you see fit. I just wanted to make it easier to integrate the breaking change.

Checklist

  • No CHANGELOG update needed
  • No new tests needed
  • No documentation update needed

Copy link
Collaborator

@mr-tz mr-tz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! we need to fix the mypy error and see my inline comment

capa/features/extractors/dnfile/helpers.py Outdated Show resolved Hide resolved
@mr-tz
Copy link
Collaborator

mr-tz commented May 21, 2024

capa/features/extractors/dnfile/helpers.py:324: error: Need type annotation for "table" [var-annotated]

@malwarefrank, can you address this as well, please?

@williballenthin williballenthin added this to the v7.1 milestone Jun 7, 2024
@mike-hunhoff mike-hunhoff merged commit 0cc06aa into mandiant:master Jun 11, 2024
25 checks passed
ygasparis pushed a commit to ygasparis/capa that referenced this pull request Jun 18, 2024
* dnfile 0.15.0 changed API

* deduplicate str() calls and isort fixes

* revert accidental change to imports ordering

* add table variable annotation

---------

Co-authored-by: Moritz <mr-tz@users.noreply.github.com>
Co-authored-by: mr-tz <moritz.raabe@mandiant.com>
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

4 participants