mirror of
https://github.com/holub/mame
synced 2025-04-22 00:11:58 +03:00
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:
parent
ef3b2ab1aa
commit
4c0957d7f0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user