Skip to content

Handle two central directories when reading archive - #7828

Merged
jeffkl merged 1 commit into
devfrom
dev-jeffkl-read-from-correct-central-directory
Nov 2, 2026
Merged

jeffkl merged 1 commit into
devfrom
dev-jeffkl-read-from-correct-central-directory

Conversation

@jeffkl

@jeffkl jeffkl commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Bug

Fixes:

Description

When our code reads a .nupkg to get the package signature, it uses our own custom implementation to read the archive. Unfortunately, the ZIP archive specification allows an archive to have two central directories and our code is not reading the correct one. This change updates our implementation to mirror what ZipArchive does so that it reads the correct central directory in the rare case when there are two.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@jeffkl jeffkl self-assigned this Oct 29, 2026
@jeffkl
jeffkl requested a review from a team as a code owner October 29, 2026 16:18
@jeffkl
jeffkl requested review from nkolev92 and zivkan October 29, 2026 16:18
@jeffkl
jeffkl merged commit 410b1fe into dev Nov 2, 2026
18 checks passed
@jeffkl
jeffkl deleted the dev-jeffkl-read-from-correct-central-directory branch November 2, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants