aboutsummaryrefslogtreecommitdiff
path: root/libbutl/lz4.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/lz4.c')
-rw-r--r--libbutl/lz4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbutl/lz4.c b/libbutl/lz4.c
index 9f5e9bf..eac0541 100644
--- a/libbutl/lz4.c
+++ b/libbutl/lz4.c
@@ -1749,7 +1749,7 @@ LZ4_decompress_generic(
const size_t dictSize /* note : = 0 if noDict */
)
{
- if (src == NULL) { return -1; }
+ if ((src == NULL) || (outputSize < 0)) { return -1; }
{ const BYTE* ip = (const BYTE*) src;
const BYTE* const iend = ip + srcSize;