Add more information to error due to truncated Elf32_Ehdr
Change-Id: I24f30bd0c1120bcf85d77f5c4e69f0fefe9a2478
This commit is contained in:
parent
c933493ac2
commit
0e79b91962
1 changed files with 2 additions and 1 deletions
|
@ -147,7 +147,8 @@ bool ElfReader::ReadElfHeader() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (rc != sizeof(header_)) {
|
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 false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue