mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[UDFS] Fix an integer overflow leading to a buffer overrun
Spotted by GCC7
This commit is contained in:
parent
8bf795ff76
commit
2a104321ee
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ ULONG inline MyReallocPool__(PCHAR addr, ULONG len, PCHAR *pnewaddr, ULONG newle
|
|||
RtlCopyMemory(newaddr, addr, newlen);
|
||||
} else {
|
||||
RtlCopyMemory(newaddr, addr, len);
|
||||
RtlZeroMemory(newaddr+len, newlen - len);
|
||||
RtlZeroMemory(newaddr+len, _newlen - len);
|
||||
}
|
||||
#ifdef MY_MEM_BOUNDS_CHECK
|
||||
for(i=0; i<MY_HEAP_ALIGN+1; i++) {
|
||||
|
|
Loading…
Reference in a new issue