The Wayback Machine - https://web.archive.org/web/20210723010544/https://github.com/lief-project/LIEF/issues/541
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

" is not an ELF" printed before returning a lief.PE.Binary from file bytes #541

Open
recvfrom opened this issue Feb 1, 2021 · 0 comments
Open
Assignees

Comments

@recvfrom
Copy link
Contributor

@recvfrom recvfrom commented Feb 1, 2021

Describe the bug
is not an ELF gets printed to stderr when instantiating a lief.PE.Binary object from files bytes

To Reproduce

>>> import lief
>>> fd = open('/tmp/00078542b6a64bfabac40491031d008839ca8e0097b7d9cad9b4628f8c532aa2', 'rb')
>>> data = fd.read()
>>> fd.close()
>>> lief.parse(list(data))
 is not an ELF
<lief.PE.Binary object at 0x7f75d8afbd88>
>>> lief.parse(data)
 is not an ELF
<lief.PE.Binary object at 0x7f75d8afbdc0>
>>> lief.parse('/tmp/00078542b6a64bfabac40491031d008839ca8e0097b7d9cad9b4628f8c532aa2')
<lief.PE.Binary object at 0x7f437eb0ed50>

Expected behavior
Don't print is not an ELF

Environment (please complete the following information):

  • OS: Ubuntu 18.04.5 LTS
  • Target: PE
  • LIEF commit version: 0.11.0-f58605f

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants