Skip to content

Conversation

@piksel
Copy link
Member

@piksel piksel commented Oct 7, 2020

Prevents files from being written outside of the destination directory when extracted using TarArchive.ExtractContents.
Basically the Tar version of #235

Attempting to extract a file that has a path traversing outside of the destinationDirectory will throw and InvalidNameException unless explicitly overridden:

tarArchive.ExtractContents(destinationDirectory, allowParentTraversal: true);

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants