--- nono/host/diskimage_raw.cpp 2026/04/29 17:05:00 1.1.1.2 +++ nono/host/diskimage_raw.cpp 2026/04/29 17:05:11 1.1.1.3 @@ -110,7 +110,7 @@ DiskImageRaw::Read(void *buf, off_t offs if (__predict_false(fd < 0)) { return false; } - if (__predict_false(offset + size >= GetSize())) { + if (__predict_false(offset + size > GetSize())) { return false; } @@ -130,7 +130,7 @@ DiskImageRaw::Write(const void *buf, off if (__predict_false(fd < 0)) { return false; } - if (__predict_false(offset + size >= GetSize())) { + if (__predict_false(offset + size > GetSize())) { return false; }