summaryrefslogtreecommitdiff
path: root/libarchive/archive_read_private.h
diff options
context:
space:
mode:
authorMartin Matuska <martin@matuska.org>2016-12-07 12:14:25 +0100
committerMartin Matuska <martin@matuska.org>2016-12-07 12:53:23 +0100
commit4f9783c83b00eb0b2d26a3f95698391b994ea65a (patch)
treec5064170c7a6dd5a85bdd2a5687561e09ca7cd0e /libarchive/archive_read_private.h
parentacd1d96d3e0df583ab661943bb1ffb93a8000dd5 (diff)
downloadlibarchive-4f9783c83b00eb0b2d26a3f95698391b994ea65a.tar.gz
Close filters before freeing
Plugs memory leak of allocated filter buffers if archive_read_free() is called and archive state is ARCHIVE_STATE_FATAL. Reported-by: OSS-Fuzz issue 227, 230, 239
Diffstat (limited to 'libarchive/archive_read_private.h')
-rw-r--r--libarchive/archive_read_private.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/libarchive/archive_read_private.h b/libarchive/archive_read_private.h
index 8eb5435b..78546dca 100644
--- a/libarchive/archive_read_private.h
+++ b/libarchive/archive_read_private.h
@@ -252,7 +252,6 @@ int64_t __archive_read_consume(struct archive_read *, int64_t);
int64_t __archive_read_filter_consume(struct archive_read_filter *, int64_t);
int __archive_read_program(struct archive_read_filter *, const char *);
void __archive_read_free_filters(struct archive_read *);
-int __archive_read_close_filters(struct archive_read *);
struct archive_read_extract *__archive_read_get_extract(struct archive_read *);