Introduce and use KArchiveDirectory::addEntryV2

Authored by aacid on Apr 13 2019, 9:09 AM.

Description

Introduce and use KArchiveDirectory::addEntryV2

Summary:
The original addEntry can delete the entry that is passed in, but we have no way to know
about it, so when that happens if we try to use the entry afterwards it will crash

This patch changes all the cases where addEntry was used and the entry passed to it is used later in the code

Test Plan: Broken file doesn't crash anymore

Reviewers: apol

Reviewed By: apol

Subscribers: kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D20493

Details

Committed
aacidApr 13 2019, 9:09 AM
Reviewer
apol
Differential Revision
D20493: Introduce and use KArchiveDirectory::addEntryV2
Parents
R243:ae8cecddf6e7: removeEntry can fail so it's good to know if it did
Branches
Unknown
Tags
Unknown