mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08: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:
committed by
Pierre Schweitzer
parent
abb6ad90f5
commit
b3b2a23f05
@@ -185,7 +185,8 @@ RtlReadMemoryStream(
|
|||||||
|
|
||||||
Stream->Current = (PUCHAR)Stream->Current + CopyLength;
|
Stream->Current = (PUCHAR)Stream->Current + CopyLength;
|
||||||
|
|
||||||
*BytesRead = CopyLength;
|
if (BytesRead)
|
||||||
|
*BytesRead = CopyLength;
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user