diff options
Diffstat (limited to 'src/adb_comp.c')
-rw-r--r-- | src/adb_comp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/adb_comp.c b/src/adb_comp.c index 9f339b8..b697101 100644 --- a/src/adb_comp.c +++ b/src/adb_comp.c @@ -16,6 +16,7 @@ struct apk_istream *adb_decompress(struct apk_istream *is, adb_comp_t *compressi if (IS_ERR_OR_NULL(is)) return is; uint8_t *buf = apk_istream_peek(is, 4); + if (IS_ERR(buf)) return ERR_PTR(apk_istream_close_error(is, PTR_ERR(buf))); if (memcmp(buf, "ADB", 3) == 0) switch (buf[3]) { case '.': c = ADB_COMP_NONE; |