]> git.notmuchmail.org Git - notmuch/commit
cli/restore: gzerror() after gzclose_r() is a use after free
authorOlivier Taïbi <oli@olitb.net>
Tue, 14 Apr 2020 17:36:27 +0000 (19:36 +0200)
committerDavid Bremner <david@tethera.net>
Thu, 16 Apr 2020 10:52:42 +0000 (07:52 -0300)
commit8c718a8190eb0820b5e3891b4643c99da50d0c08
tree72f92436cc701b4728755fd77d6b8490d10e7b28
parente083987338ab058fff826242c0a7b533f5a453ba
cli/restore: gzerror() after gzclose_r() is a use after free

Calling gzerror() (indirectly via gzerror_str()) after gzclose_r is a
use after free, according to zlib's manual.

amended by db: tidied commit message
notmuch-restore.c