summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cc4group.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cc4group.c b/src/cc4group.c
index db0ea59..43a22b5 100644
--- a/src/cc4group.c
+++ b/src/cc4group.c
@@ -650,6 +650,10 @@ static bool cc4group_uncompressGroup(CC4Group* const this, CC4Group_ReadCallback
currentSize += uncompressedSize;
uncompressedData = cc4group_tmpMemoryStrategy(this, currentSize, &tmpCleanup);
+ if(uncompressedData == NULL)
+ {
+ goto ret;
+ }
uint8_t* data = (uint8_t*)(uncompressedData) + sizeof(C4GroupHeader) + sizeof(C4GroupEntryCore) * header->Entries;