diff options
Diffstat (limited to 'plugins/elf.lua')
-rw-r--r-- | plugins/elf.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/elf.lua b/plugins/elf.lua index 439c112..bf8095f 100644 --- a/plugins/elf.lua +++ b/plugins/elf.lua @@ -18,7 +18,7 @@ -- See man 5 elf, /usr/include/elf.h and /usr/include/llvm/Support/ELF.h local detect = function (c) - return c:read (4) == "\x7FELF" + return #c >= 4 and c:read (4) == "\x7FELF" end local ph_type_table = { |