You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, if the final pyinstaller binary bundle includes files like :
LICENSE
.conf
#and probably more
staticx will refuse and error out with: Invalid ELF image: Magic number does not match
Running with debug doesn't provide extra information, it's always like this:
---snipped---
DEBUG:root:Extracting to /tmp/staticx-pyi-i4ywqjfy/yaml/_yaml.cpython-312-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-i4ywqjfy/zstandard/_cffi.cpython-312-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-i4ywqjfy/zstandard/backend_c.cpython-312-x86_64-linux-gnu.so
staticx: /tmp/staticx-pyi-i4ywqjfy/nxc/data/nxc.conf: Invalid ELF image: Magic number does not match
#Fails here
I believe this is related to these issues: #281 #268
I believe either maintaining a whitelist/blacklist or a more thorough check of the filetype should help.
The text was updated successfully, but these errors were encountered:
Hi, if the final pyinstaller binary bundle includes files like :
LICENSE .conf #and probably more
staticx will refuse and error out with:
Invalid ELF image: Magic number does not match
Running with
debug
doesn't provide extra information, it's always like this:---snipped--- DEBUG:root:Extracting to /tmp/staticx-pyi-i4ywqjfy/yaml/_yaml.cpython-312-x86_64-linux-gnu.so DEBUG:root:Extracting to /tmp/staticx-pyi-i4ywqjfy/zstandard/_cffi.cpython-312-x86_64-linux-gnu.so DEBUG:root:Extracting to /tmp/staticx-pyi-i4ywqjfy/zstandard/backend_c.cpython-312-x86_64-linux-gnu.so staticx: /tmp/staticx-pyi-i4ywqjfy/nxc/data/nxc.conf: Invalid ELF image: Magic number does not match #Fails here
I believe this is related to these issues:
#281
#268
I believe either maintaining a whitelist/blacklist or a more thorough check of the filetype should help.
The text was updated successfully, but these errors were encountered: