commit 30ee8dc804f0f9c0600dc96bda4a16307d753c96 from: Stefan Sperling date: Tue Jan 18 20:51:19 2022 UTC add missing error check in got_inflate_to_mem_mmap() commit - ef2f551e4634d795e79ad145eda2a1050f8b3cf9 commit + 30ee8dc804f0f9c0600dc96bda4a16307d753c96 blob - 68d7827eb3d5b571371f7aefe1e7153217177869 blob + b0426141094227c79e5dd1d6e3cd0e5c2a0b28f0 --- lib/inflate.c +++ lib/inflate.c @@ -425,6 +425,8 @@ got_inflate_to_mem_mmap(uint8_t **outbuf, size_t *outl } } else { err = got_inflate_init(&zb, NULL, GOT_INFLATE_BUFSIZE, csum); + if (err) + return err; } *outlen = 0;