Debugger: ElfFile::_CheckRange(): fix check

This commit is contained in:
Ingo Weinhold 2013-07-08 17:12:36 +02:00 committed by Rene Gollent
parent 080bf8fe19
commit e141e67596

View File

@ -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;
}