mirror of
https://github.com/reactos/reactos.git
synced 2025-06-17 06:48:30 +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,6 +185,7 @@ RtlReadMemoryStream(
|
||||||
|
|
||||||
Stream->Current = (PUCHAR)Stream->Current + CopyLength;
|
Stream->Current = (PUCHAR)Stream->Current + CopyLength;
|
||||||
|
|
||||||
|
if (BytesRead)
|
||||||
*BytesRead = CopyLength;
|
*BytesRead = CopyLength;
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue