From 2b5963f8e2959e8c4a6735cb70e1489503539ac1 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Fri, 28 Apr 2006 20:16:41 -0500 Subject: [PATCH] ole32: StorageImpl_GetROBigBlock can return NULL so check for NULL before doing a memcpy. --- dlls/ole32/storage32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 5e6696c4e2..a3f21d5411 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -4493,6 +4493,8 @@ BOOL BlockChainStream_ReadAt(BlockChainStream* This, */ bigBlockBuffer = StorageImpl_GetROBigBlock(This->parentStorage, blockIndex); + if (!bigBlockBuffer) + return FALSE; memcpy(bufferWalker, bigBlockBuffer + offsetInBlock, bytesToReadInBuffer);