mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
CID 1206831 Dereference after null check
BytesRead is an optional out parameter and must be checked before being written to.
This commit is contained in:
parent
abb6ad90f5
commit
b3b2a23f05
1 changed files with 2 additions and 1 deletions
|
@ -185,7 +185,8 @@ RtlReadMemoryStream(
|
|||
|
||||
Stream->Current = (PUCHAR)Stream->Current + CopyLength;
|
||||
|
||||
*BytesRead = CopyLength;
|
||||
if (BytesRead)
|
||||
*BytesRead = CopyLength;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue