mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-17 22:25:37 +00:00
CDROM: Fix buffer overflow
This commit is contained in:
parent
bb572d5c14
commit
6dc7069d7c
|
@ -1067,7 +1067,7 @@ void CDROM::DoIDRead()
|
||||||
void CDROM::DoSectorRead()
|
void CDROM::DoSectorRead()
|
||||||
{
|
{
|
||||||
// TODO: Error handling
|
// TODO: Error handling
|
||||||
u8 raw_sector[RAW_SECTOR_OUTPUT_SIZE];
|
u8 raw_sector[CDImage::RAW_SECTOR_SIZE];
|
||||||
if (!m_media->ReadRawSector(raw_sector))
|
if (!m_media->ReadRawSector(raw_sector))
|
||||||
Panic("Sector read failed");
|
Panic("Sector read failed");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue