Merge "Add more information to error due to truncated Elf32_Ehdr"
This commit is contained in:
commit
c85e0dbb0b
@ -147,7 +147,8 @@ bool ElfReader::ReadElfHeader() {
|
||||
return false;
|
||||
}
|
||||
if (rc != sizeof(header_)) {
|
||||
DL_ERR("\"%s\" is too small to be an ELF executable", name_);
|
||||
DL_ERR("\"%s\" is too small to be an ELF executable. Expected at least %d bytes, only found %d bytes.",
|
||||
name_, sizeof(header_), rc);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user