aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/compress.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/compress.cpp')
-rw-r--r--src/zencore/compress.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zencore/compress.cpp b/src/zencore/compress.cpp
index 2362d8e78..c41bdac42 100644
--- a/src/zencore/compress.cpp
+++ b/src/zencore/compress.cpp
@@ -1268,7 +1268,7 @@ CompressedBuffer::FromCompressed(SharedBuffer&& InCompressedData, IoHash& OutRaw
CompressedBuffer
CompressedBuffer::FromCompressedNoValidate(IoBuffer&& InCompressedData)
{
- if (InCompressedData.GetSize() <= sizeof(detail::BufferHeader))
+ if (InCompressedData.GetSize() < sizeof(detail::BufferHeader))
{
return CompressedBuffer();
}
@@ -1280,7 +1280,7 @@ CompressedBuffer::FromCompressedNoValidate(IoBuffer&& InCompressedData)
CompressedBuffer
CompressedBuffer::FromCompressedNoValidate(CompositeBuffer&& InCompressedData)
{
- if (InCompressedData.GetSize() <= sizeof(detail::BufferHeader))
+ if (InCompressedData.GetSize() < sizeof(detail::BufferHeader))
{
return CompressedBuffer();
}