Detects whether buf contains an ELF image by verifying the 0x7F 'E' 'L' 'F' magic bytes at offset 0.
buf
0x7F 'E' 'L' 'F'
The binary buffer to inspect.
true if the buffer starts with a valid ELF magic number.
true
Detects whether
bufcontains an ELF image by verifying the0x7F 'E' 'L' 'F'magic bytes at offset 0.