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

str(Binary) -> MemoryError: std::bad_alloc #1060

Closed
MementoRC opened this issue May 21, 2024 · 2 comments
Closed

str(Binary) -> MemoryError: std::bad_alloc #1060

MementoRC opened this issue May 21, 2024 · 2 comments
Assignees

Comments

@MementoRC
Copy link

Describe the bug
Using str(lief.ELF.parse("<path-to-binary>")) results in MemoryError: std::bad_alloc error

To Reproduce
sbcl --version && python -c 'import lief; str(lief.ELF.parse("sbcl"))'

Expected behavior
Displays version followed by the string representation of sbcl Binary

Environment (please complete the following information):

  • System and Version : [Linux Debian0 5.18.0-0.deb11.4-amd64]
  • Target format (ELF)
  • LIEF commit version: 0.14.1

Additional context
The executable seems to be working well, it is a Common Lisp compiler and can re-build itself from source. Attached is the gzip sbcl binary.
sbcl.gz

NOTICE

If the issue does not contain enough information to be reproduced,
it will be flagged as incomplete
and closed.

/NOTICE

@romainthomas
Copy link
Member

Already fixed in main

@MementoRC
Copy link
Author

Great. Is there anything I can do to mitigate this error (compilation flags, etc...)? LIEF is used in conda-forge processes and this is preventing the release of a recipe. When is the next release scheduled? Thank you

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

No branches or pull requests

2 participants