From e4c24e5fea552ebb3a0401223b476493cf54ad73 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 24 Feb 2011 10:00:21 +0100 Subject: [PATCH] xbps_read_dict_from_archive_entry: handle all erros returned by zlib's inflate(). --- lib/plist_archive_entry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/plist_archive_entry.c b/lib/plist_archive_entry.c index 34352bdc..ff3d375d 100644 --- a/lib/plist_archive_entry.c +++ b/lib/plist_archive_entry.c @@ -90,6 +90,8 @@ _xbps_uncompress_plist_data(char *xml, size_t len) case Z_STREAM_ERROR: case Z_NEED_DICT: case Z_MEM_ERROR: + case Z_BUF_ERROR: + case Z_VERSION_ERROR: (void)inflateEnd(&strm); free(uncomp_xml); return NULL;