Merge pull request #87571 from 0x0ACB/fam_offby1

Fix `FileAccessMemory` off by one error in `eof_reached`
This commit is contained in:
Rémi Verschelde 2024-01-26 11:49:06 +01:00
commit e5ecf95c1a
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -119,7 +119,7 @@ uint64_t FileAccessMemory::get_length() const {
}
bool FileAccessMemory::eof_reached() const {
return pos > length;
return pos >= length;
}
uint8_t FileAccessMemory::get_8() const {