Skip to content

Commit

Permalink
fix: imports and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tz committed Apr 7, 2022
1 parent 1614ed3 commit 7507917
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
push:
branches: [ master, dotnet-main ]
pull_request:
branches: [ master, dotnet-main ]
# TODO remove dotnet-main-2
branches: [ master, dotnet-main, dotnet-main-2 ]

# save workspaces to speed up testing
env:
Expand Down
1 change: 1 addition & 0 deletions capa/features/extractors/dnfile_.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def get_base_address(self) -> int:

def get_entry_point(self) -> int:
# self.pe.net.Flags.CLT_NATIVE_ENTRYPOINT
# True: native EP: Token
# False: managed EP: RVA
return self.pe.net.struct.EntryPointTokenOrRva

Expand Down

0 comments on commit 7507917

Please sign in to comment.