-
Notifications
You must be signed in to change notification settings - Fork 426
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
Add compatibility for LIEF=0.14 #5228
Conversation
Signed-off-by: Marcel Bargull <[email protected]>
Signed-off-by: Marcel Bargull <[email protected]>
Signed-off-by: Marcel Bargull <[email protected]>
Signed-off-by: Marcel Bargull <[email protected]>
@conda/builds-tools, I've just added the corresponding issue to the |
Haha, I just sent her a message asking if you have concrete plans 🤣 .
Yes, the code changes are likely ready already. |
This reverts commit cb5df71. Signed-off-by: Marcel Bargull <[email protected]>
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.
Confirming constant renaming (lief.PE.HEADER_CHARACTERISTICS
→ lief.PE.Header.CHARACTERISTICS
and lief.EXE_FORMATS
→ lief.Binary.FORMATS
) and removal of lief.Binary.name
(using str(file)
instead)
introduced in condagh-5228 which replaced binary.name with str(file). The former returns the path to the binary whereas the latter returns the contents of the parsed binary, naturally causing high memory usage. That semantic change was unintended (misread upstream changes). Since binary's path is no longer part of the object, pass it separately. Signed-off-by: Marcel Bargull <[email protected]>
* Fix excessive memory use in inspect_linkages_lief introduced in gh-5228 which replaced binary.name with str(file). The former returns the path to the binary whereas the latter returns the contents of the parsed binary, naturally causing high memory usage. That semantic change was unintended (misread upstream changes). Since binary's path is no longer part of the object, pass it separately. * Use consistent var name in inspect_linkages_lief to avoid variable shadowing. * Remove redundant get_uniqueness_key call --------- Signed-off-by: Marcel Bargull <[email protected]>
Description
Add compatibility for LIEF=0.14
Fixes gh-5227.
Checklist - did you ...
news
directory (using the template) for the next release's release notes?