commit | a894c63dba7019ceb8f6aa2c3cdcef519c65c92d | [log] [tgz] |
---|---|---|
author | Mark Wielaard <mark@klomp.org> | Sun Apr 26 02:10:41 2020 +0200 |
committer | Mark Wielaard <mark@klomp.org> | Sun Apr 26 02:37:16 2020 +0200 |
tree | c386c6ea98fb3c382d3cc523eb364e1ac4442ea0 | |
parent | 5436c7529dd9b24f62e3df10e30d5da53da16efd [diff] |
libdwfl: Fix double free on failure path in gzip.c. GCC10 -fanalyzer found a double free when openstream failed. When openstream fails __libdw_gunzip will call fail, which frees the state->buffer. But openstream can call zlib_fail, which will also call fail. Instead of calling zlib_fail, just return the error that zlib_fail would have returned. Signed-off-by: Mark Wielaard <mark@klomp.org>