From 6dc7069d7c5898957d3b138492a81876a3aa379f Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 3 Nov 2019 00:09:17 +1000 Subject: [PATCH] CDROM: Fix buffer overflow --- src/core/cdrom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cdrom.cpp b/src/core/cdrom.cpp index e90f34e79..70f274bbc 100644 --- a/src/core/cdrom.cpp +++ b/src/core/cdrom.cpp @@ -1067,7 +1067,7 @@ void CDROM::DoIDRead() void CDROM::DoSectorRead() { // TODO: Error handling - u8 raw_sector[RAW_SECTOR_OUTPUT_SIZE]; + u8 raw_sector[CDImage::RAW_SECTOR_SIZE]; if (!m_media->ReadRawSector(raw_sector)) Panic("Sector read failed");