From 5a63a624543663f60965f54f187a29cdbab39d35 Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Sat, 17 Dec 2016 22:38:04 +0000 Subject: [PATCH] cdvdgigaherz: Fix read past the end of the buffer --- plugins/cdvdGigaherz/src/ReadThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/cdvdGigaherz/src/ReadThread.cpp b/plugins/cdvdGigaherz/src/ReadThread.cpp index bce351feb6..6c10ad99f9 100644 --- a/plugins/cdvdGigaherz/src/ReadThread.cpp +++ b/plugins/cdvdGigaherz/src/ReadThread.cpp @@ -341,7 +341,7 @@ s32 cdvdDirectReadSector(u32 sector, s32 mode, u8 *buffer) memcpy(buffer, bfr + 12, 2340); return 0; default: - memcpy(buffer, bfr + 12, 2352); + memcpy(buffer, bfr, 2352); return 0; } }