Alistair Leslie-Hughes : ole32: Add pointer check.
Module: wine Branch: stable Commit: c0337fae4def9cef6ccdcd4644e993baf21e8845 URL: https://source.winehq.org/git/wine.git/?a=commit;h=c0337fae4def9cef6ccdcd464... Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue Sep 26 01:12:52 2017 +0000 ole32: Add pointer check. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Signed-off-by: Vincent Povirk <vincent(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> (cherry picked from commit fcc261adfd402133385820b06bf0d6589829fcf9) Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> --- dlls/ole32/storage32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 2bc9d3d..bccb2f3 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -7267,6 +7267,8 @@ BlockChainStream* BlockChainStream_Construct( BlockChainStream* newStream; newStream = HeapAlloc(GetProcessHeap(), 0, sizeof(BlockChainStream)); + if(!newStream) + return NULL; newStream->parentStorage = parentStorage; newStream->headOfStreamPlaceHolder = headOfStreamPlaceHolder;
participants (1)
-
Alexandre Julliard