| Summary: | Opening an archive containing a directory with a name ending in ".." fails with an error message. | ||
|---|---|---|---|
| Product: | [Applications] ark | Reporter: | deepfriedice |
| Component: | general | Assignee: | Elvis Angelaccio <elvis.angelaccio> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aacid, nate, rthomsen6, sz.rutkowski |
| Priority: | NOR | ||
| Version First Reported In: | 20.12.2 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/utilities/ark/commit/71473ab372696a835e37bf11c7ac37f3e612b553 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | Example failing file. | ||
|
Description
deepfriedice
2022-02-13 08:41:04 UTC
Can confirm the issue on a newer version (20.12.2). The example file extracts with no problem with "tar -xf test.tar", so it seems a reasonable expectation that it would work. Thanks for reporting. As you were able to find the likely cause in the code, be aware that a submitting patch to Ark would probably be welcome: https://community.kde.org/Get_Involved/development Git commit 71473ab372696a835e37bf11c7ac37f3e612b553 by Albert Astals Cid. Committed on 14/04/2022 at 22:53. Pushed by aacid into branch 'release/22.04'. Relax protection against ../ on the file path It should only be problematic if ../ is first on the path or if there's a full /../ on the path. Having a ../ not at the beginning just means that there's a folder that ends in ".." Weird but not wrong M +2 -1 kerfuffle/jobs.cpp https://invent.kde.org/utilities/ark/commit/71473ab372696a835e37bf11c7ac37f3e612b553 |