mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 17:03:05 +00:00
ADL: Add sanity check to track/sector numbers read from NIB
This commit is contained in:
parent
b64d8dbf3b
commit
9f479c9b17
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user