lib/util/cdrom.h: fix out-of-bounds MAME init crash when disc is 99 tracks

* cfr. pcecd:cosmfnt and pcecd:solbianc
This commit is contained in:
angelosa 2024-01-25 00:08:53 +01:00
parent ef3b2ab1aa
commit 4c0957d7f0

View File

@ -21,7 +21,7 @@ public:
// tracks are padded to a multiple of this many frames
static constexpr uint32_t TRACK_PADDING = 4;
static constexpr uint32_t MAX_TRACKS = 99; /* AFAIK the theoretical limit */
static constexpr uint32_t MAX_TRACKS = 99 + 1;
static constexpr uint32_t MAX_SECTOR_DATA = 2352;
static constexpr uint32_t MAX_SUBCODE_DATA = 96;