summaryrefslogtreecommitdiff
path: root/inffast.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2019-09-19 22:11:43 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2019-10-25 08:39:34 +0200
commit440d4287455065efca40454c92936c65119b1bf6 (patch)
tree06f6a1b9430888401b3a777a59c19da225a5be08 /inffast.c
parent710fe986a54a5c27e5f9cf517da580331dbfbd14 (diff)
Fixed assert during inflate fast when len < sizeof(uint64_t).
Diffstat (limited to 'inffast.c')
-rw-r--r--inffast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inffast.c b/inffast.c
index 62cb951..dc282dc 100644
--- a/inffast.c
+++ b/inffast.c
@@ -310,7 +310,7 @@ void ZLIB_INTERNAL zng_inflate_fast(PREFIX3(stream) *strm, unsigned long start)
if (dist >= len || dist >= INFFAST_CHUNKSIZE)
out = chunkcopy(out, out - dist, len);
else
- out = chunkmemset(out, dist, len);
+ out = chunkmemsetsafe(out, dist, len, len);
#else
if (len < sizeof(uint64_t))
out = set_bytes(out, out - dist, dist, len);