Commit graph

2572 commits

Author SHA1 Message Date
Adam Hathcock
1bfc11adfa
Merge pull request #1253 from adamhathcock/adam/fix-zip645-and-zipzstd
Some checks failed
NuGet Release / build-and-publish (ubuntu-latest) (push) Failing after 12s
NuGet Release / build-and-publish (windows-latest) (push) Has been cancelled
Fix ZIP64 stream bounding and WinZip AES read-state corruption in ZIP reader
2026-03-17 12:21:57 +00:00
Adam Hathcock
9611c4c3de try ignoring the warning that only seems to happen on GA 2026-03-17 12:12:44 +00:00
Daniel Sabel
642371f87e fixes .net 4.8 build for WinzipAesCryptoStream tests 2026-03-16 08:04:06 +01:00
Adam Hathcock
63e83dff5d
Update tests/SharpCompress.Test/Zip/ZipFilePartTests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-11 11:53:10 +00:00
Daniel Sabel
5fc0d691cf fixes xor range on async WinzipAesCryptoStream path 2026-03-11 08:57:47 +01:00
Daniel Sabel
03aef9e4c1 update test to reflect smaller test zip 2026-03-09 14:04:17 +01:00
Daniel Sabel
51859f9a2b fixes decompression of large mixed encrypted zip files 2026-03-09 14:02:31 +01:00
Adam Hathcock
c6e2221b24
Merge pull request #1245 from adamhathcock/adam/clean-up-tests
Proper test file clean up
2026-03-06 15:07:08 +00:00
Adam Hathcock
04d1a10114 don't use static scratch directory for tests. Throw exception when test can't clean up 2026-03-06 14:58:04 +00:00
Adam Hathcock
b719edfa57
Merge pull request #1242 from adamhathcock/adam/update-deps
Some checks failed
NuGet Release / build-and-publish (ubuntu-latest) (push) Failing after 14s
NuGet Release / build-and-publish (windows-latest) (push) Has been cancelled
Update test dependencies
2026-03-03 17:29:30 +00:00
Adam Hathcock
7c0e3d584a Update test dependencies 2026-03-03 17:01:21 +00:00
Adam Hathcock
5a8119e562 Merge remote-tracking branch 'origin/release'
# Conflicts:
#	src/SharpCompress/Common/Zip/ZipFilePart.cs
#	src/SharpCompress/IO/SharpCompressStream.cs
2026-03-03 16:25:10 +00:00
Adam Hathcock
1d07f4e1ca
Merge pull request #1237 from adamhathcock/copilot/fix-zip-extraction-error
Fix DataErrorException when extracting LZMA-compressed zero-byte ZIP entries
2026-03-03 16:21:11 +00:00
Adam Hathcock
3abf0dc3f3
Merge pull request #1239 from adamhathcock/adam/extractionoptions-are-back
Moving extraction options back
2026-03-03 16:19:27 +00:00
Adam Hathcock
3fb7e02653 update docs 2026-03-03 12:50:27 +00:00
Adam Hathcock
0910f20c90 renamed to ReaderOptions.ForFilePath 2026-03-03 12:40:58 +00:00
Adam Hathcock
8fbb2688d9
Merge pull request #1240 from adamhathcock/dependabot/github_actions/actions/upload-artifact-7
Bump actions/upload-artifact from 6 to 7
2026-03-02 14:05:15 +00:00
dependabot[bot]
d17b74e608
Bump actions/upload-artifact from 6 to 7
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-02 10:23:07 +00:00
Adam Hathcock
ba1cd66336 First pass of moving extraction options back 2026-03-02 07:00:33 +00:00
Adam Hathcock
10b6e903c1
Merge pull request #1238 from adamhathcock/adam/fix-zip-extraction-error
Some checks failed
NuGet Release / build-and-publish (ubuntu-latest) (push) Failing after 14s
NuGet Release / build-and-publish (windows-latest) (push) Has been cancelled
Fix DataErrorException when extracting LZMA-compressed zero-byte ZIP entries
2026-03-01 13:55:44 +00:00
Adam Hathcock
4445b8e01e fmt 2026-03-01 13:38:20 +00:00
Adam Hathcock
fc426c73e0 correct fix 2026-03-01 13:37:48 +00:00
copilot-swe-agent[bot]
c1b132c215 Fix DataErrorException when extracting 0-size LZMA ZIP entries
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>

# Conflicts:
#	src/SharpCompress/Common/Zip/ZipFilePart.Async.cs
#	src/SharpCompress/Common/Zip/ZipFilePart.cs
2026-03-01 13:25:54 +00:00
copilot-swe-agent[bot]
30dfa72622 Fix DataErrorException when extracting LZMA-compressed zero-byte ZIP entries
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
2026-02-27 22:10:58 +00:00
copilot-swe-agent[bot]
75d2b70f20 Fix DataErrorException when extracting 0-size LZMA ZIP entries
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
2026-02-27 22:06:18 +00:00
copilot-swe-agent[bot]
55c2e75b1d Initial plan 2026-02-27 21:49:40 +00:00
Adam Hathcock
6e8ae5d342
Merge pull request #1235 from adamhathcock/adam/support-async-7z-writing 2026-02-25 18:31:29 +00:00
Adam Hathcock
50e8c66c27 Add async 7z writing 2026-02-25 16:39:22 +00:00
Adam Hathcock
c4acf1774d
Merge pull request #1233 from adamhathcock/adam/expose-sc-stream
Some checks failed
NuGet Release / build-and-publish (ubuntu-latest) (push) Failing after 15s
NuGet Release / build-and-publish (windows-latest) (push) Has been cancelled
Make SharpCompressStream public
2026-02-25 14:16:34 +00:00
Adam Hathcock
28319f1510
Merge pull request #1234 from adamhathcock/copilot/sub-pr-1233
Fix SharpCompressStream.Create() buffer size misalignment for non-seekable streams
2026-02-25 13:13:56 +00:00
copilot-swe-agent[bot]
d0bfdfd6ab Fix buffer size alignment: use RewindableBufferSize consistently in Create() and StartRecording()
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
2026-02-25 10:41:26 +00:00
copilot-swe-agent[bot]
5a0d6dd333 Initial plan 2026-02-25 10:38:41 +00:00
Adam Hathcock
0778b13086 add more docs 2026-02-25 09:15:40 +00:00
Adam Hathcock
a53a88b9dc Make SharpCompressStream public 2026-02-25 09:10:21 +00:00
Adam Hathcock
852a077085
Merge pull request #1229 from DanNsk/feature/sevenzip-writer-lzma2-new 2026-02-24 18:15:40 +00:00
Adam Hathcock
543c33e26b fmt 2026-02-24 17:09:32 +00:00
Daniil Bystrukhin
9c214a658c Rewind output stream when non-seekable empty input leaves orphaned encoder bytes 2026-02-22 23:31:41 -06:00
Daniil Bystrukhin
d512655c5c Adapt SevenZipFactory and WriterOptionsExtensions to upstream IWriterFactory changes 2026-02-22 23:12:33 -06:00
D. B.
3e35d7e6b4
Merge branch 'adamhathcock:master' into feature/sevenzip-writer-lzma2-new 2026-02-22 23:02:09 -06:00
Daniil Bystrukhin
2093ceb700 Merge feature/sevenzip-writer-lzma review fixes into lzma2 branch 2026-02-22 22:57:12 -06:00
Daniil Bystrukhin
02fa306b46 Fix empty stream handling, SubStreamsInfo size tag, CRC dedup, and post-dispose guard 2026-02-22 22:54:09 -06:00
Daniil Bystrukhin
d4277f5907 Code review fixes: post-dispose guard, SubStreamsInfo spec compliance, CRC dedup, exception filter 2026-02-22 22:30:47 -06:00
Daniil Bystrukhin
d82cf8f911 Merge feature/sevenzip-writer-lzma - use CompressionType enum, default LZMA2 2026-02-22 21:19:13 -06:00
Daniil Bystrukhin
97b8a93a0c Pass CompressionType through compressor instead of bool isLzma2 2026-02-22 21:15:17 -06:00
Daniil Bystrukhin
bcf628568c Replace IsLzma2 flag with CompressionType enum for 7z writer API consistency 2026-02-22 21:08:34 -06:00
Daniil Bystrukhin
be0e298b1a Merge branch 'feature/sevenzip-writer-lzma' into feature/sevenzip-writer-lzma2-new 2026-02-22 20:34:50 -06:00
Daniil Bystrukhin
cac77aaeda Strip trailing slash from directory names in 7z writer 2026-02-22 20:22:21 -06:00
Adam Hathcock
aec0fca5f8
Merge pull request #1211 from adamhathcock/adam/writers-should-async
Writers should have async API
2026-02-22 13:28:50 +00:00
Adam Hathcock
8d24dff967 fix aot 2026-02-22 13:22:37 +00:00
Adam Hathcock
0d913f6bbc some code fixes 2026-02-22 13:19:04 +00:00