summaryrefslogtreecommitdiffstats
path: root/src/cc4group.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cc4group.c')
-rw-r--r--src/cc4group.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cc4group.c b/src/cc4group.c
index a664fe3..d376873 100644
--- a/src/cc4group.c
+++ b/src/cc4group.c
@@ -721,8 +721,9 @@ static bool cc4group_uncompressGroup(CC4Group* const this, CC4Group_ReadCallback
goto ret;
}
- if(strm.avail_in > 0 || ret != Z_STREAM_END)
+ if(strm.avail_in > 0)
{
+ // NOTE: This may miss additional garbage data at the end if the read callback happens to read exactly the right amount of data
SET_MALFORMED_MESSAGE_ERROR("The group contents are read completely but more data is left to read");
goto ret;
}