Fix a mistype in segment overrange checking
Change-Id: Ibea93514aa7ba3b1ac2bc00420f5124fb34f5f66 Signed-off-by: skvalex <skvalex@gmail.com>
This commit is contained in:
parent
079fc83313
commit
93ce35434c
@ -382,7 +382,7 @@ bool ElfReader::LoadSegments() {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (file_end >= static_cast<size_t>(file_size_)) {
|
||||
if (file_end > static_cast<size_t>(file_size_)) {
|
||||
DL_ERR("invalid ELF file \"%s\" load segment[%zd]:"
|
||||
" p_offset (%p) + p_filesz (%p) ( = %p) past end of file (0x%" PRIx64 ")",
|
||||
name_, i, reinterpret_cast<void*>(phdr->p_offset),
|
||||
|
Loading…
Reference in New Issue
Block a user