diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index 1bf95b6..9b6c5c0 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -2831,6 +2831,19 @@ static LZFILE *lzopen_internal(const char *path, const char *mode, int fd, int x ret = lzma_auto_decoder(&lzfile->strm, 100<<20, 0); } if (ret != LZMA_OK) { + switch (ret) { + case LZMA_MEM_ERROR: + rpmlog(RPMLOG_ERR, "liblzma: Memory allocation failed"); + break; + + case LZMA_DATA_ERROR: + rpmlog(RPMLOG_ERR, "liblzma: File size limits exceeded"); + break; + + default: + rpmlog(RPMLOG_ERR, "liblzma: