Codebase list pgpdump / 00f9251
Avoid infinite loop when invoking BZ2_bzDecompress This corner case was found with afl. See https://bugs.debian.org/869891 for more discussion. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> Christoph Biedl authored 5 years ago Daniel Kahn Gillmor committed 5 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
275275 while (bz.avail_out != 0) {
276276 if (bz.avail_in == 0) {
277277 size = (*d_func2)(d_buf2, sizeof(d_buf2));
278 if (size == 0)
279 warn_exit("bzip2 no data for BZ2_bzDecompress");
278280 bz.next_in = (cast_t)d_buf2;
279281 bz.avail_in = size;
280282 }