Commit a3769b22 authored by Timo Teräs's avatar Timo Teräs

io: check inner stream existance before creating gunzip stream

parent fb911432
......@@ -71,6 +71,9 @@ struct apk_istream *apk_bstream_gunzip(struct apk_bstream *bs)
{
struct apk_gzip_istream *gis;
if (bs == NULL)
return NULL;
gis = malloc(sizeof(struct apk_gzip_istream));
if (gis == NULL)
return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment