diff options
author | Yann Collet <cyan@fb.com> | 2020-11-07 04:46:35 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2020-11-07 04:46:35 (GMT) |
commit | 27959b43ec4d4afe1e9d7654258eacf5e29ecf2b (patch) | |
tree | 116cdd5f2cd9e9a40123d838271bbbd351b03e1d /lib/lz4frame.c | |
parent | b5e2a4acd953fd21fef2c372d9750992d454e76f (diff) | |
download | lz4-27959b43ec4d4afe1e9d7654258eacf5e29ecf2b.zip lz4-27959b43ec4d4afe1e9d7654258eacf5e29ecf2b.tar.gz lz4-27959b43ec4d4afe1e9d7654258eacf5e29ecf2b.tar.bz2 |
LZ4F_decompress requires a valid dctx state
This is now explicitly documented and asserted.
fix #927
Diffstat (limited to 'lib/lz4frame.c')
-rw-r--r-- | lib/lz4frame.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index 2976bb1..e02b76c 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -1405,6 +1405,7 @@ size_t LZ4F_decompress(LZ4F_dctx* dctx, if (decompressOptionsPtr==NULL) decompressOptionsPtr = &optionsNull; *srcSizePtr = 0; *dstSizePtr = 0; + assert(dctx != NULL); /* behaves as a state machine */ |