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
copilot-swe-agent[bot]
434ce05416
Fix Zip64 version mismatch between LFH and CDFH
...
When UseZip64=true but files are small, ensure Central Directory File Header uses version 45 to match Local File Header. This fixes validation failures in System.IO.Packaging and other strict readers.
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2025-11-19 11:14:06 +00:00
Adam Hathcock
b8264a8131
Merge pull request #1004 from adamhathcock/adam/async-xz
...
Async XZ
2025-11-19 10:53:24 +00:00
Adam Hathcock
cad923018e
Merge remote-tracking branch 'origin/master' into adam/async-xz
2025-11-19 09:56:01 +00:00
Twan van Dongen
e0186eadc0
Add buffer boundary tests for streaming decompression. Methods 1,2,3 still need fixing full streaming; exception now thrown to prevent corrupt output
2025-11-18 08:14:34 +01:00
Twan
dd9dc2500b
Merge branch 'adamhathcock:master' into master
2025-11-14 15:40:36 +01:00
Twan van Dongen
4efb109da8
Arj's methods CompressedMost (1), Compressed (2) and CompressedFaster (3) implemented.
2025-11-14 15:39:58 +01:00
Morilli
97f58b412e
Add test for StackSeek behavior
2025-11-14 03:37:08 +01:00
dependabot[bot]
4c61628078
Bump AwesomeAssertions from 9.2.1 to 9.3.0
...
---
updated-dependencies:
- dependency-name: AwesomeAssertions
dependency-version: 9.3.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-10 11:57:30 +00:00
Twan van Dongen
a9017d7c25
ArjReader throws exception for password protected archives.
2025-11-06 09:32:12 +01:00
Twan van Dongen
997d3910d4
CSharpier appliedArjReader thrown exception for multi-part archives. Method4 (decodefastest) refactored to support Stream.
2025-11-05 08:05:30 +01:00
Twan van Dongen
84cd772f50
Refactors the SqueezeStream class to ensure full CLS compliance and proper stream behavior. It replaces the previous one-shot decoding logic with a true streaming implementation by piping Huffman-decoded output into the existing RunLength90Stream, enabling real-time decompression.
2025-11-02 19:09:59 +01:00
Adam Hathcock
a771ba3bc0
async tests
2025-11-01 10:35:07 +00:00
Adam Hathcock
f7b3525c4e
fix tests and fmt
2025-11-01 10:25:14 +00:00
Adam Hathcock
de83bdae48
Merge remote-tracking branch 'origin/master' into adam/async-lzma
2025-11-01 10:21:25 +00:00
Adam Hathcock
2d41de6b72
add async tests
2025-11-01 09:57:26 +00:00
Twan van Dongen
0c199609eb
CSharpier...Merge branch 'master' of https://github.com/TwanVanDongen/sharpcompress
2025-10-31 16:17:23 +01:00
Twan
7ab16457c7
Added ARJ's compressmion method4 (compressed fastest).
...
Refactored TestBase to support archives with mixed compression algorithms.Merge branch 'adamhathcock:master' into master
2025-10-31 16:14:48 +01:00
Twan
e7ad8132b5
Merge branch 'adamhathcock:master' into master
2025-10-31 14:33:14 +01:00
Adam Hathcock
55cb350d2c
remove needless variable
2025-10-31 11:44:32 +00:00
Adam Hathcock
c53ca372f2
don't use pools in tests
2025-10-31 11:39:57 +00:00
Adam Hathcock
75bc8501f4
Merge pull request #997 from adamhathcock/copilot/fix-ziparchive-linux-issue
...
Fix ArchiveFactory.Open double-wrapping causing "Cannot determine compressed stream type" on Linux
2025-10-31 11:24:59 +00:00
Adam Hathcock
ccc8587e5f
review fixes
2025-10-31 10:55:33 +00:00
Adam Hathcock
a136084e11
add adc async
2025-10-30 14:52:51 +00:00
Adam Hathcock
bc06f3179d
add basics for async bzip2
2025-10-30 14:42:46 +00:00
Adam Hathcock
ee84d971b2
Merge remote-tracking branch 'origin/master' into copilot/fix-ziparchive-linux-issue
...
# Conflicts:
# src/SharpCompress/packages.lock.json
2025-10-30 14:30:31 +00:00
Twan
264d80ef4c
Merge branch 'master' into master
2025-10-30 07:53:09 +01:00
copilot-swe-agent[bot]
88b3a66bf9
Fix Windows test failures in SharpCompressStreamTests
...
ArrayPool.Rent() can return buffers larger than requested. The tests were using test.Length (the actual buffer size) instead of the requested size (0x1000), causing failures on Windows where ArrayPool returns larger buffers than on Linux.
Fixed by:
- Using explicit size (0x1000) instead of test.Length in Read() calls
- Using test.Take(0x1000) instead of test when comparing arrays
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2025-10-29 13:40:44 +00:00
copilot-swe-agent[bot]
db98e5f39b
Fix ArchiveFactory.Open to avoid double-wrapping SharpCompressStream
...
Use SharpCompressStream.Create instead of constructor to properly handle
streams that are already wrapped. This prevents potential buffering issues
when opening ZIP files, particularly on Linux systems.
Added tests to verify both raw FileStream and pre-wrapped stream scenarios.
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2025-10-29 13:34:53 +00:00
Adam Hathcock
75ada5623c
add async tests for compress stream
2025-10-29 13:23:50 +00:00
Adam Hathcock
a0c5b1cd9d
add archive tests
2025-10-29 09:08:08 +00:00
Adam Hathcock
bb53d1e1c6
entrystream fixes and fmt
2025-10-29 08:41:05 +00:00
Twan van Dongen
2aabd8d0e1
Initial implementation of the ARJ (Archived by Robert Jung) format, supporting 'store' for single file archives. Multi-file archives and all compression algorithms still require implementations.
2025-10-28 20:38:29 +01:00
Adam Hathcock
aca97c2c6c
add rarcrc tests
2025-10-28 16:48:05 +00:00
Adam Hathcock
8e7d959cf4
add async creations
2025-10-28 16:07:16 +00:00
Adam Hathcock
bca0f67344
make test linux only
2025-10-28 12:18:05 +00:00
Adam Hathcock
f51840829c
Merge branch 'master' into async-reader-methods
2025-10-28 11:39:35 +00:00
Adam Hathcock
aa1c0d0870
Merge pull request #988 from adamhathcock/copilot/fix-file-write-error
...
Fix extraction failure on Windows due to case-sensitive path comparison
2025-10-28 11:39:17 +00:00
Adam Hathcock
b799f479c4
Merge branch 'master' into copilot/add-support-empty-directories
2025-10-28 11:35:56 +00:00
copilot-swe-agent[bot]
b4352fefa5
Fix code formatting per CSharpier standards
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2025-10-28 11:32:39 +00:00
Adam Hathcock
77d06fb60e
Merge branch 'master' into copilot/fix-file-write-error
2025-10-28 11:32:05 +00:00
Adam Hathcock
153d10a35c
add async to forward only streams
2025-10-28 11:30:12 +00:00
Adam Hathcock
06713c641e
async deflate 64
2025-10-28 11:26:31 +00:00
copilot-swe-agent[bot]
210978ec2d
Format code with CSharpier
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2025-10-28 11:13:51 +00:00
Adam Hathcock
42f7d43139
enable zip64 tests that pass
2025-10-28 11:07:53 +00:00
Adam Hathcock
19967f5ad7
allow forward only write
2025-10-28 11:01:27 +00:00
Adam Hathcock
a1de3eb47d
add async tests and clean up deflate64stream
2025-10-28 11:01:12 +00:00
copilot-swe-agent[bot]
a93a3f0598
Address code review feedback - fix formatting
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2025-10-28 10:26:31 +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