Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A truncated ELF file would make the library panic. This can be illustrated by the following sequence in a Unix shell: $ dd if=/bin/sh of=bogus.elf bs=16 count=1 $ cargo run bogus.elf thread 'main' panicked at 'index 64 out of range for slice of length 16', src/header.rs:28:23
- Loading branch information