diff options
author | Yann Collet <cyan@fb.com> | 2019-04-13 22:55:06 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2019-04-13 22:55:06 (GMT) |
commit | 749c3400bd6ff6b49641fadaf0edb23d7a7b6413 (patch) | |
tree | 29c7afc2e106765a46d2ed5224b70a1c0361a344 /lib | |
parent | 31763c59fca9a38bc697cd37f591d6ba385f7614 (diff) | |
download | lz4-749c3400bd6ff6b49641fadaf0edb23d7a7b6413.zip lz4-749c3400bd6ff6b49641fadaf0edb23d7a7b6413.tar.gz lz4-749c3400bd6ff6b49641fadaf0edb23d7a7b6413.tar.bz2 |
fixed incorrect assertion condition
output can use the full length of output buffer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index 2b31a0d..4c5c1a8 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -956,7 +956,7 @@ size_t LZ4F_flush(LZ4F_cctx* cctxPtr, compress, cctxPtr->lz4CtxPtr, cctxPtr->prefs.compressionLevel, cctxPtr->cdict, cctxPtr->prefs.frameInfo.blockChecksumFlag); - assert(((void)"flush overflows dstBuffer!", (size_t)(dstPtr - dstStart) < dstCapacity)); + assert(((void)"flush overflows dstBuffer!", (size_t)(dstPtr - dstStart) <= dstCapacity)); if (cctxPtr->prefs.frameInfo.blockMode == LZ4F_blockLinked) cctxPtr->tmpIn += cctxPtr->tmpInSize; |