diff options
author | 2024-01-25 00:08:53 +0100 | |
---|---|---|
committer | 2024-01-25 00:08:58 +0100 | |
commit | 4c0957d7f0ba6a72e7267270db07ee06fe717109 (patch) | |
tree | baee41f4f7986d1cd7863dc2473f6e242580cc2b /src/lib/util/cdrom.h | |
parent | ef3b2ab1aab0dbae1f9be1262eaf50d5f28287d5 (diff) |
lib/util/cdrom.h: fix out-of-bounds MAME init crash when disc is 99 tracks
* cfr. pcecd:cosmfnt and pcecd:solbianc
Diffstat (limited to 'src/lib/util/cdrom.h')
-rw-r--r-- | src/lib/util/cdrom.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/cdrom.h b/src/lib/util/cdrom.h index 214a7ed39d6..c8b5d1f1f56 100644 --- a/src/lib/util/cdrom.h +++ b/src/lib/util/cdrom.h @@ -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; |