Broken elf header incorrectly identified as missing file
Nathan <[email protected]>
| Newsgroups | gmane.comp.shells.zsh.devel |
|---|---|
| Message-ID | <CAE3bff1FTL_XEeAXEWgv+1bLKFvc3Yd4YjVZRG-V3yY3iZ44EQ@mail.gmail.com> |
On zsh 5.9 (x86_64-ubuntu-linux-gnu) To reproduce: 1. Create a malformed elf binary by deleting everything past part way through the file (a broken binary that triggers the bug is attached) 2. Make the binary executable 3. Attempt to run the binary with ./b.out 4. Observe that the file is incorrectly identified as not existing, when the actual issue is a broken elf header Bash returns the correct error message, but several other shells return the same wrong error.
b.out
(application/octet-stream, 1.7 KB) - not displayed