KAr::openArchive: Protect against Heap-buffer-overflow in broken files

Authored by aacid on May 13 2019, 5:34 PM.

Description

KAr::openArchive: Protect against Heap-buffer-overflow in broken files

Summary: If size is negative there's no need to continue, file is broken

Reviewers: apol

Reviewed By: apol

Subscribers: apol, kde-frameworks-devel

Tags: Frameworks

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

Details

Committed
aacidMay 13 2019, 5:34 PM
Reviewer
apol
Differential Revision
D21149: KAr::openArchive: Protect against Heap-buffer-overflow in broken files
Parents
R243:a149acbeb0fc: Fix KAr::openArchive with older Qt
Branches
Unknown
Tags
Unknown