summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-07-09 23:02:05 +0100
committerGitHub <noreply@github.com>2020-07-09 23:02:05 +0100
commit2ffa426e1dffc78c64112ea8a4a9796be66462a9 (patch)
tree3fff1abba93f3e789e5432375ab5b786a2ceeab4 /deps
parent6053616393c7a522b94fac573a2ae1fe4ad86cc5 (diff)
parent3a197ea7ead1bc1b018eb809e92f418a00e5c3f8 (diff)
downloadlibgit2-2ffa426e1dffc78c64112ea8a4a9796be66462a9.tar.gz
Merge pull request #5567 from lhchavez/msan
Make the tests pass cleanly with MemorySanitizer
Diffstat (limited to 'deps')
-rw-r--r--deps/zlib/deflate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/zlib/deflate.c b/deps/zlib/deflate.c
index 1ec761448..8d44869e6 100644
--- a/deps/zlib/deflate.c
+++ b/deps/zlib/deflate.c
@@ -320,6 +320,7 @@ int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy,
s->window = (Bytef *) ZALLOC(strm, s->w_size, 2*sizeof(Byte));
s->prev = (Posf *) ZALLOC(strm, s->w_size, sizeof(Pos));
+ memset(s->prev, 0, s->w_size * sizeof(Pos));
s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
s->high_water = 0; /* nothing written to s->window yet */