mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
ark: crude crash fix for application/x-archive with weird directory entry
e.g. the libkspeech.a static library created by cmake Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
cf11d60529
commit
90b1789d62
1 changed files with 5 additions and 0 deletions
|
@ -114,6 +114,11 @@ bool LibArchiveInterface::list()
|
|||
int result = ARCHIVE_EOF;
|
||||
|
||||
while (!m_abortOperation && (result = archive_read_next_header(arch_reader.data(), &aentry)) == ARCHIVE_OK) {
|
||||
#warning FIXME: fix double-slash root directory properly
|
||||
if (qstrcmp(archive_entry_pathname(aentry), "//") == 0) {
|
||||
archive_read_data_skip(arch_reader.data());
|
||||
continue;
|
||||
}
|
||||
if (!m_emitNoEntries) {
|
||||
emitEntryFromArchiveEntry(aentry);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue