https://bugs.kde.org/show_bug.cgi?id=411074

--- Comment #2 from Ragnar Thomsen <rthoms...@gmail.com> ---
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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to