ole32: StorageImpl_GetROBigBlock can return NULL so check for NULL before doing a memcpy.
This commit is contained in:
parent
72e279bd36
commit
2b5963f8e2
@ -4493,6 +4493,8 @@ BOOL BlockChainStream_ReadAt(BlockChainStream* This,
|
|||||||
*/
|
*/
|
||||||
bigBlockBuffer =
|
bigBlockBuffer =
|
||||||
StorageImpl_GetROBigBlock(This->parentStorage, blockIndex);
|
StorageImpl_GetROBigBlock(This->parentStorage, blockIndex);
|
||||||
|
if (!bigBlockBuffer)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
memcpy(bufferWalker, bigBlockBuffer + offsetInBlock, bytesToReadInBuffer);
|
memcpy(bufferWalker, bigBlockBuffer + offsetInBlock, bytesToReadInBuffer);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user