Adam Hathcock
4e0d78d6c8
update desc
2026-02-03 16:41:19 +00:00
copilot-swe-agent[bot]
3d745bfa05
Fix invalid TFM: change netstandard20 to netstandard2.0
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-02-03 16:30:47 +00:00
Adam Hathcock
01e162fcc4
properly add netstandard 2 support
2026-02-03 16:17:58 +00:00
Adam Hathcock
443f7b8b0c
Add AOT to props and clean up in release
2026-02-03 16:13:15 +00:00
copilot-swe-agent[bot]
8737b7a38e
Apply infinite loop fix to SourceStream.cs and add test case
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-02-02 09:31:38 +00:00
Adam Hathcock
9a7bdd39e8
Merge pull request #1172 from adamhathcock/copilot/fix-sevenzip-contiguous-streams
...
Fix SevenZipReader to maintain contiguous stream state for solid archives
2026-01-28 08:35:28 +00:00
Adam Hathcock
484bc740d7
Update src/SharpCompress/Archives/SevenZip/SevenZipArchive.cs
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-28 08:26:28 +00:00
Adam Hathcock
8a67d501a8
Don't use reflection in tests
2026-01-28 08:10:06 +00:00
copilot-swe-agent[bot]
999124e68e
Remove unused _currentFolderIndex field
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-27 17:03:20 +00:00
copilot-swe-agent[bot]
db2f5c9cb9
Fix SevenZipReader to iterate entries as contiguous streams
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-27 17:01:18 +00:00
copilot-swe-agent[bot]
d59e4c2a0d
Refactor FillBuffer to use ReadFully pattern
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-27 16:25:24 +00:00
copilot-swe-agent[bot]
71655e04c4
Apply code formatting with CSharpier
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-27 16:02:26 +00:00
copilot-swe-agent[bot]
a706a9d725
Fix ZIP parsing regression with short reads on non-seekable streams
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-27 16:00:44 +00:00
Adam Hathcock
4d31436740
constant should be a static property
2026-01-27 12:39:01 +00:00
Adam Hathcock
3c88c7fdd5
Merge pull request #1167 from adamhathcock/copilot/sub-pr-1165-again
...
Fix grammatical errors in ArcFactory comment documentation
2026-01-27 11:58:25 +00:00
copilot-swe-agent[bot]
010a38bb73
Add clarifying comment about buffer size value difference
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-27 11:54:50 +00:00
copilot-swe-agent[bot]
53f12d75db
Add [Obsolete] attribute to ReaderOptions.DefaultBufferSize
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-27 11:53:37 +00:00
copilot-swe-agent[bot]
6c866324b2
Fix grammatical errors in ArcFactory comments
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-27 11:49:29 +00:00
Adam Hathcock
d52facd4ab
Remove change
2026-01-27 10:48:32 +00:00
Adam Hathcock
0a50386ada
Using Constants class differently
2026-01-27 10:46:54 +00:00
copilot-swe-agent[bot]
56d3091688
Fix condition order to check CanSeek before Position
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-26 12:12:08 +00:00
copilot-swe-agent[bot]
a0af0604d1
Add disposal checks to RefillCache methods
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-26 12:11:16 +00:00
copilot-swe-agent[bot]
875c2d7694
Fix BufferedSubStream double-dispose issue with ArrayPool
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-26 12:10:19 +00:00
Adam Hathcock
a82fda98d7
more testing and add pooling to cache
2026-01-26 11:45:25 +00:00
Adam Hathcock
44e4b1804e
add check to see if we need to seek before hand
2026-01-26 09:41:13 +00:00
Adam Hathcock
bf4217fde6
Merge pull request #1156 from adamhathcock/copilot/fix-sharpcompress-archive-iteration
...
Fix silent iteration failure when input stream throws on Flush()
# Conflicts:
# src/SharpCompress/packages.lock.json
2026-01-24 10:18:02 +00:00
Adam Hathcock
7732fbb698
Merge pull request #1151 from adamhathcock/copilot/fix-entrystream-flush-issue
...
Fix EntryStream.Dispose() throwing NotSupportedException on non-seekable streams
2026-01-23 08:59:56 +00:00
Adam Hathcock
d74454f7e9
Merge pull request #1145 from adamhathcock/copilot/add-leaveopen-parameter-lzipstream
...
Add leaveOpen parameter to LZipStream and BZip2Stream
2026-01-19 09:58:10 +00:00
Adam Hathcock
fd968b3f78
Update src/SharpCompress/IO/ReadOnlySubStream.cs
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-06 16:33:03 +00:00
Adam Hathcock
833dd7b3a2
fix tests and fmt
2026-01-06 15:33:43 +00:00
Adam Hathcock
b9258ad496
use more ValueTask methods but types are still created because of state machine suspension
2026-01-06 15:26:49 +00:00
copilot-swe-agent[bot]
0678318dde
Fix async decompression by implementing Memory<byte> ReadAsync overload
...
The issue was that .NET 10's ReadExactlyAsync calls the Memory<byte> overload of ReadAsync, which wasn't implemented in BufferedSubStream. This caused it to fall back to the base Stream implementation that uses synchronous reads, leading to cache state corruption.
Solution: Added ValueTask<int> ReadAsync(Memory<byte>, CancellationToken) overload for modern .NET versions.
All tests now passing including LZMA2 and Solid archives.
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-06 14:18:15 +00:00
copilot-swe-agent[bot]
7116c0d098
Add async support to BufferedSubStream for 7zip decompression
...
- Implemented ReadAsync and RefillCacheAsync methods in BufferedSubStream
- Added async test cases for SevenZipArchive (LZMA, LZMA2, Solid, BZip2, PPMd)
- Tests show LZMA, BZip2, and PPMd working correctly
- LZMA2 and Solid archives still failing with Data Error - investigating cache state management
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-06 14:13:48 +00:00
Adam Hathcock
64b209a772
add disposal tests and fix lzipstream
2026-01-06 13:13:34 +00:00
Adam Hathcock
48dbdbfed5
fmt
2026-01-06 12:49:26 +00:00
Adam Hathcock
cf50311b9c
Skip should use framework stuff
2026-01-06 12:45:13 +00:00
Adam Hathcock
e4d8582a2a
7zip streams always want to be disposed
2026-01-06 12:42:48 +00:00
Adam Hathcock
af951d6f6a
Merge pull request #1102 from TwanVanDongen/master
...
Add support for ACE archives
2026-01-05 16:37:35 +00:00
Twan van Dongen
7a49eb9e93
Archives containing encrypted content throws exception.
2026-01-04 19:10:57 +01:00
copilot-swe-agent[bot]
b25493fd29
Fix InvalidOperationException when RAR unpacks more data than header specifies
...
Changed validation condition from `_position != Length` to `_position < Length` in RarStream.Read() and RarStream.ReadImplAsync() to only throw when unpacking ends prematurely, not when more data is unpacked than the header specifies. This allows successful extraction of RAR files where the actual uncompressed size exceeds the header size.
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-04 09:23:47 +00:00
Twan van Dongen
3ebf97dd49
MultiVolume not supported, tests provided by split archive.
2026-01-03 19:09:43 +01:00
Twan van Dongen
feece3d788
Missed some CSharpier edits
2026-01-03 18:08:01 +01:00
Twan van Dongen
909d36c237
more subtle check of magic bytes for ARJ archives
2026-01-03 17:59:17 +01:00
Twan van Dongen
e1c8aa226d
Add ACE archive support (read-only, stored entries)
2026-01-03 17:18:00 +01:00
Adam Hathcock
b2beea9c4e
Merge pull request #1077 from adamhathcock/copilot/provide-interface-for-entries
...
Remove ExtractAllEntries restriction for non-SOLID archives
2025-12-23 15:47:52 +00:00
Adam Hathcock
4dbe0b91f1
Update src/SharpCompress/IO/SharpCompressStream.cs
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-23 15:06:24 +00:00
copilot-swe-agent[bot]
6991900eb0
Remove try/catch blocks, just check CanSeek as requested
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2025-12-23 15:01:41 +00:00
copilot-swe-agent[bot]
d614beb9eb
Add explanatory comments for CanSeek checks and try-catch blocks
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2025-12-23 14:41:44 +00:00
copilot-swe-agent[bot]
253a46d458
Fix NotSupportedException in SharpCompressStream by checking CanSeek
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2025-12-23 14:38:11 +00:00
Adam Hathcock
e79dceb67e
check should be there
2025-12-23 09:31:51 +00:00