mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 22:01:29 +00:00
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.
4 lines
80 B
Bash
Executable File
4 lines
80 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "pal_load needs to recognize that this file is not an elf file"
|