Twan van Dongen
02301ecf6d
Support added for TAR LZW compression (Unix 'compress' resulting in .Z files)
2024-03-24 16:23:25 +01:00
Twan van Dongen
fe13d29549
Merge branch 'master' of https://github.com/TwanVanDongen/sharpcompress
2024-01-27 18:31:13 +01:00
Twan van Dongen
225aaab4f4
Support for decompressing Zip Shrink (method:1) added
2024-01-27 18:28:46 +01:00
Adam Hathcock
3c1ae51dae
Merge pull request #786 from Erior/feature/Issue-774
...
LZMA EOS marker detection
2023-12-11 08:46:20 +00:00
Adam Hathcock
8a59fc9aaf
Merge pull request #785 from Erior/feature/Issue-782
...
Handle tar files generated with tar -H oldgnu that has large uid/gid values
2023-12-11 08:44:54 +00:00
Lars Vahlenberg
0320db6b4a
LZMA EOS marker detection
2023-12-09 13:41:35 +01:00
Lars Vahlenberg
18c7f58093
Handle tar files generated with tar -H oldgnu that has large uid/gid values
2023-12-04 22:35:11 +01:00
Lars Vahlenberg
ca49176b97
Dont crash on reading rar5 comment
2023-12-04 20:19:11 +01:00
btomblinson
57c0d19cde
#751 Add .tar.7z support
2023-09-17 17:46:56 -06:00
Lars Vahlenberg
6a859ac65d
Adding Filters to 7z
2023-09-11 19:24:54 +02:00
Adam Hathcock
99e99c1ccd
Merge branch 'master' into fixes-zstd
2023-06-12 09:45:35 +01:00
Lars Vahlenberg
23a9ca3140
Delta distance
2023-03-19 12:37:12 +01:00
Adam Hathcock
5a2d2b86d5
Merge branch 'master' into master
2023-03-01 08:52:34 +00:00
Adam Hathcock
42e8f481d6
Merge pull request #726 from Erior/feature/7ZipDelta
...
Add support for 7ZipDelta decompress
2023-03-01 08:43:48 +00:00
Twan van Dongen
8748314b5b
Fixed support for RAR 1.5 (algo15) and added test archive for unit testing. Rar 1.5 archive created using DOS version, which only supports uppercase characters, thus resulting in amending base class with 'UseCaseInsensitiveToVerify' toggle.
2023-02-21 21:28:38 +01:00
Lars Vahlenberg
3ae830a637
Add support for 7ZipDelta decompress
2023-02-18 15:27:16 +01:00
Nanook
92df1ecd5f
ZStandard support added to zip/zipx (WinZip) and 7zip (mcmilk 7zip)
2023-02-02 01:06:18 +00:00
Nanook
b9d019561f
Added the XZ zipx unit test.
2023-02-02 00:39:34 +00:00
Sugita Akira
418c1256a8
Ignores UnicodePathExtra if forced encoding is specified
2022-09-14 21:45:41 -07:00
Lars Vahlenberg
44a5433af3
64bit DataDescriptor
2022-08-04 21:22:31 +02:00
Adam Hathcock
70343b17bc
add more tests for uncompressed streaming zips
2022-07-29 09:47:35 +01:00
Lars Vahlenberg
ad633a9dd0
missing test file from error report
2022-07-28 21:20:42 +02:00
Martin Demberger
8b55cce39a
Better handling of uncompressed zip files.
2022-06-15 16:28:14 +02:00
Craig
224614312f
Added multipart Zip support (z01...). Added IEntry.IsSolid and implemented Rar and 7Zi[ support.
2022-04-25 01:16:53 +01:00
Craig
ec1999f73d
Added Split archive support with unit tests. Added ArchiveFactory.IsArchive() and minor refactor.
2022-04-21 00:12:26 +01:00
Craig
dab157bb71
Rar2 fix with new unit tests that fail on previous build.
2022-02-15 16:24:22 +00:00
Daniel Nash
fdc33e91bd
Conditionally parse Zip64 extra field based on specification
...
The Zip64 extra field should look for values based on the corresponding
values in the local entry header.
Fixes adamhathcock/sharpcompress#595
2021-04-26 14:58:10 -04:00
Adam Hathcock
c10bd840c5
ReadFully used by pkware encryption didn’t like spans
2021-04-25 09:25:51 +01:00
Lars Vahlenberg
d1d2758ee0
Propsal for handling Zip with long comment
2021-02-13 23:57:03 +01:00
Dmitriy
de6759a83f
- remove check of solid archive
...
- change tests
- add test on multi solid archive
2020-07-01 15:06:54 +05:00
Lars Vahlenberg
9bf9d34d94
Issue86 Proposal
2020-01-16 22:08:48 +01:00
itn3000
9b4b2a9f7c
considering encoding in processing filename( #414 )
...
modify test tar archive because it was not expected one.
(expected "тест.txt" in encoding 866, but actual is omitted upper byte)
2019-06-26 17:34:12 +09:00
Daniel Nash
af264cdc58
Return a bounded substream when data descriptors are used in seekable zips
2019-06-04 08:31:42 -04:00
Daniel Nash
b2bd20b47e
Handle a bad extra field in a local file header in zip files
2019-06-03 13:02:28 -04:00
Mark Final
d91e58f2cc
Refs #248 . Refs #132 . Added a test case of a tar containing symlinks
...
This is a source archive of the MoltenVK project from github, which is my use-case for SharpCompress.
I added a test case in the project, which should extract the tar, and validate any symlink targets with what the tar thinks it ought to be.
2018-11-01 21:51:14 +00:00
Knut Ørland
6dd5da48f7
Added test that calls EntryStream.Flush()
2018-10-04 13:08:53 +02:00
Elliot Prior
83f6690576
Recognise empty tar archives.
...
Currently, when ArchiveFactory.Open is called on an empty tar archive, it throws due to being unable to determine the stream type. This fix allows it to recognise empty tar files by checking for whether the filename is empty, the size is empty and the entry type is defined. Add a test to try opening an empty archive.
2018-08-16 10:25:47 +01:00
odinn1986
80ceb1c375
fix: prevent extracting archived files outside of target path
...
This PR is meant to fix an arbitrary file write vulnerability, that can be
achieved using a specially crafted zip archive, that holds path traversal
filenames. When the filename gets concatenated to the target extraction
directory, the final path ends up outside of the target folder.
A sample malicious zip file named Zip.Evil.zip was used,
and when running the code below, resulted in the creation of C:/Temp/evil.txt
outside of the intended target directory.
There are various possible ways to avoid this issue, some include checking
for .. (dot dot) characters in the filename, but the best solution in our
opinion is to check if the final target filename, starts with the target
folder (after both are resolved to their absolute path).
Stay secure,
Snyk Team
2018-05-02 23:12:33 +03:00
Adam Hathcock
9b152a40a9
Merge branch 'master' into rar5
2018-04-22 11:35:33 +01:00
frabar666
6e2c7d2857
support Deflate64 decompression
2018-02-27 23:31:11 +01:00
coderb
1c49ff63e2
rar5: replicate rar test cases
2017-12-17 08:09:41 -05:00
coderb
d334b54846
rar5: add test archives
2017-12-16 12:54:32 -05:00
Martijn Kant
c2528cf93e
Mk/add support for extracting password protected LZMA(2) 7z archives ( #324 )
...
* Added possibility to decompress a password protected 7z LZMA archive
* Fix tests
2017-12-04 10:55:30 +00:00
Adam Hathcock
15110e18e2
Don't skip ZipReader data twice. ( #272 )
...
* Don't skip ZipReader data twice.
* Add archive for a new test
2017-07-17 11:05:21 -04:00
Adam Hathcock
b45bc859a4
XZ Format ( #247 )
...
* Started integrated XZ format from https://github.com/sambott/XZ.NET
* Add readme line as it was copy/pasted
* Tar used with XZ
* update formats
2017-05-31 16:55:26 +01:00
Adam Hathcock
912d7a8775
Lzip ( #245 )
...
* First pass. Writing isn't implemented on stream. Tests are busted.
* LZipReader works...no file name :(
* LZipWriter works
* Writing tests are actually correct now. LZipStream correctly writes trailer now. lzip command line tool likes it.
* Add recommendation blurb
* Update notes for formats
* LZip isn't an archive format
* Attempting to fix and implement crc32
* LZip writing test passes
* Had to invert crc to check uncompressed data.
2017-05-31 16:51:24 +01:00
Dan Baumberger
313c044c41
Added a unit test for the WinZipAes multiple OpenEntryStream() bug.
2017-05-23 07:44:45 -07:00
Adam Hathcock
ee64670755
Move test folder to be tests
2017-05-19 09:19:37 +01:00