Summary: | Decompression errors are not reported | ||
---|---|---|---|
Product: | [Applications] ark | Reporter: | Alexander Trufanov <trufanovan> |
Component: | general | Assignee: | Elvis Angelaccio <elvis.angelaccio> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | alois1, justin.zobel, rthomsen6 |
Priority: | NOR | ||
Version: | 18.12.3 | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Alexander Trufanov
2019-08-19 17:31:01 UTC
Retitled, as the linked archive is corrupted and untarring it on the command-line gives CRC errors. Git commit b47c534607e22610b7f80628943227f32fa9948a by Ragnar Thomsen. Committed on 04/05/2020 at 08:50. Pushed by rthomsen into branch 'release/20.04'. libarchive: Improve error-handling when loading archive Improves error-handling in LibarchivePlugin::list(). Previously we only checked whether we could read until the end of the archive, and even if we couldn't there was no error shown to the user. Now we check the return value of both archive_read_next_header() and archive_read_data_skip(), and show a corrupt archive query if either was not successful. This partially solves bug 411074, as Ark now at least gives a warning when opening a corrupt archive with libarchiveplugin. We still need to improve error-handling when extracting, but this requires some refactoring first so will be done later. Differential Revision: D29383 M +33 -3 plugins/libarchive/libarchiveplugin.cpp M +1 -0 plugins/libarchive/libarchiveplugin.h https://commits.kde.org/ark/b47c534607e22610b7f80628943227f32fa9948a This file is corrupt. tar xzf cjb2xx0.1.tgz gzip: stdin: invalid compressed data--crc error gzip: stdin: invalid compressed data--length error tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now |