From 2561f6fc52b036fd133b9b1b16e770912d45745b Mon Sep 17 00:00:00 2001 From: ACB Date: Thu, 25 Jan 2024 10:35:51 +0100 Subject: [PATCH] Fix FileAccessMemory off by one error in eof_reached --- core/io/file_access_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/file_access_memory.cpp b/core/io/file_access_memory.cpp index 0983920b94a..da02c883e89 100644 --- a/core/io/file_access_memory.cpp +++ b/core/io/file_access_memory.cpp @@ -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 {