commit 79160fa1b140b6df0d1f647f5e3e317504df9e92 from: Pompolic date: Thu Oct 01 12:04:29 2020 UTC Merge branch 'denleylam/pdf-master' commit - 98671c12c1a5705b2bf20261509a2ed41ac78ea8 commit + 79160fa1b140b6df0d1f647f5e3e317504df9e92 blob - 6e6c6f61f8824b34174bc581978c6f58f7252482 blob + 37baee6faa43c2353007c774abb6f02299fc3ad7 --- pdf.c +++ pdf.c @@ -1657,6 +1657,7 @@ new_lzw_spec(HBytes *bytes) { size_t const BUFSIZE = sizeof(uint8_t) * 1024; lzwspec *ret = malloc(sizeof(lzwspec)); + memset(ret, 0, sizeof(lzwspec)); ret->input_stream = bytes; ret->lzw_buf = malloc(BUFSIZE); ret->total_buf_size = BUFSIZE;