commit eb736692df74f6c683d67cf27306c28b5fd10c0d from: Denley <> date: Tue Sep 29 00:30:01 2020 UTC Fix uninitialized variable for lzwspec commit - 98671c12c1a5705b2bf20261509a2ed41ac78ea8 commit + eb736692df74f6c683d67cf27306c28b5fd10c0d 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;