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

staticx: Don't raise exception from is_dynamic_elf #270

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

JonathonReinhart
Copy link
Owner

Previously, if a non-ELF file appeared in a PyInstaller archive as a "binary" file, staticx would crash when open_elf() raised an InvalidInputError.

Rename is_dynamic() to is_dynamic_elf() to make it clear that it now returns False if the file is not an ELF file at all.

Fixes #268.

Previously, if a non-ELF file appeared in a PyInstaller archive as a
"binary" file, staticx would crash when open_elf() raised an
InvalidInputError.

Rename is_dynamic() to is_dynamic_elf() to make it clear that it now
returns False if the file is not an ELF file at all.

Fixes #268.
@JonathonReinhart JonathonReinhart merged commit 78e239e into main Jan 8, 2024
11 checks passed
@JonathonReinhart JonathonReinhart deleted the fix-invalid-elf-error branch January 8, 2024 05:06
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.

Invalid ELF image: Magic number does not match
1 participant