1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-11-07 06:33:38 +01:00

feat: add ELF magic detection on kernel image blob for some arm64 systems

This commit is contained in:
Stéphane Lesimple 2018-03-10 14:57:01 +01:00
parent d2f46740e9
commit d5832dc1dc

View File

@ -607,6 +607,7 @@ extract_vmlinux()
try_decompress '\135\0\0\0' xxx unlzma '' xz-utils "$1" && return 0
try_decompress '\211\114\132' xy 'lzop' '-d' lzop "$1" && return 0
try_decompress '\002\041\114\030' xyy 'lz4' '-d -l' liblz4-tool "$1" && return 0
try_decompress '\177ELF' xxy 'cat' '' cat "$1" && return 0
return 1
}