Conversation
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add CRC32 validation for reading zip archive entries
docs: Breaking change – CRC32 validation added when reading ZIP archive entries (.NET 11 Preview 3)
Apr 3, 2026
gewarren
approved these changes
Apr 3, 2026
docs/core/compatibility/core-libraries/11/ziparchive-entry-crc32-validation.md
Outdated
Show resolved
Hide resolved
docs/core/compatibility/core-libraries/11/ziparchive-entry-crc32-validation.md
Outdated
Show resolved
Hide resolved
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new .NET 11 Core .NET libraries breaking change article documenting that System.IO.Compression now validates CRC32 when reading ZIP entries, and wires the article into the .NET 11 breaking changes index and TOC.
Changes:
- Added a new breaking change article for CRC32 validation on ZIP entry reads (
ZipArchiveEntry.Open). - Linked the new article from
docs/core/compatibility/11.md. - Added the new article to
docs/core/compatibility/toc.ymlunder .NET 11 > Core .NET libraries.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| docs/core/compatibility/core-libraries/11/ziparchive-entry-crc32-validation.md | New breaking change article describing CRC32 validation behavior and recommended mitigation. |
| docs/core/compatibility/11.md | Adds the new breaking change to the .NET 11 Core .NET libraries table. |
| docs/core/compatibility/toc.yml | Adds a TOC entry for the new breaking change article under .NET 11. |
docs/core/compatibility/core-libraries/11/ziparchive-entry-crc32-validation.md
Show resolved
Hide resolved
docs/core/compatibility/core-libraries/11/ziparchive-entry-crc32-validation.md
Outdated
Show resolved
Hide resolved
docs/core/compatibility/core-libraries/11/ziparchive-entry-crc32-validation.md
Show resolved
Hide resolved
docs/core/compatibility/core-libraries/11/ziparchive-entry-crc32-validation.md
Outdated
Show resolved
Hide resolved
docs/core/compatibility/core-libraries/11/ziparchive-entry-crc32-validation.md
Outdated
Show resolved
Hide resolved
Updated the example to include a null check for the ZIP entry and improved the integrity validation message.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents the behavioral breaking change in
System.IO.Compressionwhere reading a ZIP archive entry now computes and validates the CRC32 checksum, throwingInvalidDataExceptionon mismatch. Previously, corrupted entries were silently read without any integrity check.Changes
docs/core/compatibility/core-libraries/11/ziparchive-entry-crc32-validation.mdInvalidDataException)ZipArchiveEntry.Opendocs/core/compatibility/11.md– Added entry to the Core .NET libraries table (alphabetical order)docs/core/compatibility/toc.yml– Added TOC entry under.NET 11 > Core .NET libraries(alphabetical order)Behavior snapshot
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/graphql/usr/bin/gh gh repo view --json nameWithOwner,parent(http block)/usr/bin/gh gh auth status(http block)/usr/bin/gh gh auth status ps(http block)https://api.github.com/rate_limit/usr/bin/curl curl -v --max-time 5 REDACTED -H Authorization: token ****** github.com(http block)/usr/bin/curl curl -s --max-time 10 REDACTED -H Authorization: token ****** ndor/bin/git r(http block)/usr/bin/curl curl -s --max-time 10 REDACTED -H Authorization: token ******(http block)https://api.github.com/repos/dotnet/docs/usr/bin/curl curl -s -I -H Authorization: token ****** REDACTED(http block)https://api.github.com/repos/dotnet/docs/git/refs/heads/copilot/add-crc32-validation-zip-entries/usr/bin/curl curl -s -o /dev/null -w %{http_code} -X PATCH -H Authorization: token ****** -H Accept: application/vnd.github.v3+json REDACTED -d {"sha":"75175590a4e83a8eeb9c021d08f23d6c5e17806d","force":false} github.com(http block)https://api.github.com/repos/dotnet/docs/issues/48174/usr/bin/curl curl -s REDACTED -H Authorization: token ******(http block)If you need me to access, download, or install something from one of these locations, you can either:
Internal previews