mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
TONY: Fix buffer overrun
This commit is contained in:
parent
f6444a03d2
commit
534f723fa5
@ -331,7 +331,7 @@ static const byte *parseItem(const byte *lpBuf, LpMpalItem lpmiItem) {
|
||||
|
||||
byte len = *lpBuf;
|
||||
lpBuf++;
|
||||
memcpy(lpmiItem->_lpszDescribe, lpBuf, MIN((byte)127, len));
|
||||
memcpy(lpmiItem->_lpszDescribe, lpBuf, MIN((byte)MAX_DESCRIBE_SIZE, len));
|
||||
lpBuf += len;
|
||||
|
||||
if (len >= MAX_DESCRIBE_SIZE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user