Debugger: ElfFile::_CheckRange(): fix check
This commit is contained in:
parent
080bf8fe19
commit
e141e67596
@ -345,7 +345,7 @@ ElfFile::_LoadFile(const char* fileName)
|
||||
bool
|
||||
ElfFile::_CheckRange(off_t offset, off_t size) const
|
||||
{
|
||||
return offset < fFileSize && offset + size < fFileSize;
|
||||
return offset < fFileSize && offset + size <= fFileSize;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user