diff options
-rw-r--r-- | libbutl/lz4.c | 2 |
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; |