Files
graphene/Pal/regression/nonelf_binary
jack.wxz ad6b5210e5 [Pal/Linux-SGX] Fail with ENOEXEC if loading non-ELF file
Previously, there was no check that the file is non-ELF before trying to read
the ELF header. This led to segmentation faults while loading non-ELF files
(e.g., bash scripts). This commit adds an explicit check, as well as the
corresponding PAL regression test.
2019-11-19 18:59:34 -08:00

4 lines
80 B
Bash
Executable File

#!/bin/sh
echo "pal_load needs to recognize that this file is not an elf file"