summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2019-04-13 22:55:06 (GMT)
committerYann Collet <cyan@fb.com>2019-04-13 22:55:06 (GMT)
commit749c3400bd6ff6b49641fadaf0edb23d7a7b6413 (patch)
tree29c7afc2e106765a46d2ed5224b70a1c0361a344 /lib
parent31763c59fca9a38bc697cd37f591d6ba385f7614 (diff)
downloadlz4-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.c2
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;