diff options
-rw-r--r-- | engines/adl/disk.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/adl/disk.cpp b/engines/adl/disk.cpp index 6174f6ff43..a77798c1b6 100644 --- a/engines/adl/disk.cpp +++ b/engines/adl/disk.cpp @@ -150,6 +150,12 @@ static Common::SeekableReadStream *readImage_NIB(const Common::String &filename, continue; } + if (track >= 35 || sector >= sectorsPerTrack) { + warning("NIB: sector out of bounds @ (%x, %x)", track, sector); + sawAddress = false; + continue; + } + if (!firstGoodTrackPos) firstGoodTrackPos = pos; |