From 270d7191cebd33f8eaedf2c589e57ca4bd99e3a6 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Tue, 1 Nov 2016 13:41:03 +0100 Subject: [PATCH] sio: increase buffer to avoid overflow memcardWrite will use "sio.buf[data + 5] = mcd->term;" and data is 8 bits Reported by coverity --- pcsx2/Sio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/Sio.h b/pcsx2/Sio.h index 6153f9bc55..88f8b69203 100644 --- a/pcsx2/Sio.h +++ b/pcsx2/Sio.h @@ -102,7 +102,7 @@ struct _sio u32 count; // old_sio remnant u32 packetsize;// old_sio remnant - u8 buf[256]; + u8 buf[512]; u8 ret; // default return value; u8 cmd; // command backup