copilot-swe-agent[bot]
7b06652bff
Add validation to prevent memory exhaustion in TAR long name headers
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2025-11-19 11:20:59 +00:00
Adam Hathcock
f7b3525c4e
fix tests and fmt
2025-11-01 10:25:14 +00:00
Adam Hathcock
bca0f67344
make test linux only
2025-10-28 12:18:05 +00:00
copilot-swe-agent[bot]
084f81fc8d
Format code with CSharpier
2025-10-28 10:23:57 +00:00
copilot-swe-agent[bot]
d148f36e87
Add support for empty directory entries in archives
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2025-10-28 10:22:58 +00:00
Adam Hathcock
ab03c12fa8
add more tests
2025-10-27 10:52:03 +00:00
Adam Hathcock
16182417fb
add tar specific tests
2025-10-27 10:46:08 +00:00
Adam Hathcock
084fe72b02
Consolidate not null
2025-10-22 09:17:13 +01:00
Mitch Capper
553c533ada
ZStandard tar support
2025-09-23 03:26:33 -07:00
Nanook
21f14cd3f2
Added IStreamStack for debugging and configurable buffer management. Added SharpCompressStream to consolodate streams to help simplify debugging. All unit tests passing.
2025-07-20 17:35:22 +01:00
Adam Hathcock
e7417e35ba
Update dependencies and csharpier
2025-04-28 16:18:01 +01:00
Adam Hathcock
5bf3d6dc32
update csharpier
2025-01-14 09:07:40 +00:00
Lars Vahlenberg
6b88f82656
Handle special case, empty file
2024-07-11 19:52:33 +02:00
Lars Vahlenberg
e42d953f47
Check crc on tar header
2024-07-10 19:53:32 +02:00
blokyk
dbbc7c8132
fix(tar): prevent infinite loop when reading corrupted archive
2024-04-24 03:13:13 +02:00
Adam Hathcock
fb55624f5f
add more null handling
2024-04-18 14:25:10 +01:00
Twan van Dongen
02301ecf6d
Support added for TAR LZW compression (Unix 'compress' resulting in .Z files)
2024-03-24 16:23:25 +01:00
Adam Hathcock
4afc7ae2e4
use complete namespace
2024-03-14 13:07:40 +00:00
Adam Hathcock
5f13e245f0
more clean up on tests
2024-03-14 08:53:08 +00:00
Adam Hathcock
2715ae645d
use var
2024-03-14 08:38:12 +00:00
Adam Hathcock
0299232cb5
just using rider to clean up
2024-03-14 08:37:17 +00:00
Adam Hathcock
93e181cfd9
update csharpier
2024-03-14 08:29:30 +00:00
Adam Hathcock
ea3a96eead
update and rerun csharpier
2023-12-18 09:04:04 +00: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
Adam Hathcock
7080c2abd0
Update csharpier and fix formatting
2023-11-15 11:05:30 +00:00
Lars Vahlenberg
b7d2715ffd
Remove whitespace
2023-03-29 19:39:03 +02:00
Lars Vahlenberg
fe63466d67
CSharpier
2023-03-29 18:18:17 +02:00
Lars Vahlenberg
0fb63eea99
Check for broken file
2023-03-28 23:07:21 +02:00
Adam Hathcock
16e8dd447b
update csharpier
2023-03-21 13:14:08 +00:00
Adam Hathcock
b01e97b168
more clean up
2022-12-20 15:20:49 +00:00
Adam Hathcock
7da10795a1
csharpier
2022-12-20 15:14:22 +00:00
Adam Hathcock
959bbdcf1b
big clean up
2022-12-20 15:06:44 +00:00
Adam Hathcock
970e31a1b1
cleanup and run csharpier
2022-12-20 13:45:47 +00:00
Adam Hathcock
d6ac9a0363
Fix build
2022-12-20 13:09:16 +00:00
Adam Hathcock
6950eebf9f
Dependency updates and start of enforcing some C# standards
2022-04-21 08:54:59 +01:00
Adam Hathcock
ce5432ed73
Fix tests for multi-targetting
2021-10-02 15:25:43 +01:00
Adam Hathcock
5357bd07c7
Let dotnet format do it’s thing
2021-01-09 13:33:34 +00:00
Jason Nelson
fc1d0a0464
Run tests against net461
2020-07-31 09:27:32 -07:00
Adam Hathcock
f521fd35ff
Fix tests, update to 0.26
2020-07-26 14:36:07 +01:00
Daniel Nash
d055b34efe
Ensure TarArchive enumerates all entries
...
While enumerating the entries of a tar file and writing their contents
to disk using TarArchive, it was discovered TarArchive was not properly
discarding padding bytes in the last block of each entry. TarArchive was
sometimes able to recover depending on the number of padding bytes due
to the logic it uses to find the next entry header, but not always.
TarArchive was changed to use TarReadOnlySubStream when opening entries
and TarReadOnlySubstream was changed to ensure all an entry's blocks are
read when it is being disposed.
Fixes adamhathcock/sharpcompress#524
2020-07-20 12:57:39 -04:00
Adam Hathcock
632bae725d
Add braces for clarity
2020-05-14 13:47:21 +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
Mark Final
70bafa653b
Tar symlink extraction
...
Extended SharpCompress.Common.ExtractionOptions with a delegate to write symbolic links. If not is null, and a symbolic link is encountered, an exception is thrown.
Removed Mono.Posix.NETStandard from the library, but added to the .NET Core 2.1 test application.
Extended the test to implement the delegate.
2018-11-03 09:45:12 +00: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
53ad00cdc4
Use soft tabs
2018-10-04 13:13:14 +02:00
Knut Ørland
6dd5da48f7
Added test that calls EntryStream.Flush()
2018-10-04 13:08:53 +02:00
Adam Hathcock
f1facc51de
Merge pull request #409 from G-Research/RecogniseEmptyTarArchives
...
Recognise empty tar archives.
2018-09-25 13:20:59 +01: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
majoreffort
ec044e6f42
Added Tar test for 100 char filename issue.
2018-07-23 19:48:01 +02:00
Matt Kotsenas
6ae715b153
Move the TestStream and ForwardOnlyStream to Mocks folder
...
Move the `TestStream` and `ForwardOnlyStream` to Mocks/ to separate them
from the test classes.
2018-07-10 12:07:32 -07:00