xbps_read_dict_from_archive_entry: handle all erros returned by zlib's inflate().
This commit is contained in:
parent
7c6119427c
commit
e4c24e5fea
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user