Repository navigation
fix: detect cyclic link entries during asar path resolution - #52859
Merged
MarshallOfSound merged 2 commits intoAug 16, 2026
Conversation
Path resolution in shell/common/asar/archive.cc followed "link" entries with no bound. A header whose links form a cycle (an entry pointing at itself, two entries pointing at each other, or a link that resolves back through its own path) made Archive::GetFileInfo self-recurse and the GetNodeFromPath/GetFilesNode pair mutually recurse until the stack was exhausted. Cap the number of chained link resolutions in both paths and treat an exceeded limit as a missing entry, so a malformed header fails the lookup gracefully instead of crashing. Legitimate archives only ever chain a few links, so the limit does not affect valid lookups. Notes: none Co-authored-by: Sam Attard <[email protected]>
Co-authored-by: Sam Attard <[email protected]>
MarshallOfSound
approved these changes
Aug 16, 2026
MarshallOfSound
enabled auto-merge (squash)
August 16, 2026 11:12
MarshallOfSound
deleted the
trop/42-x-y-bp-fix-detect-cyclic-link-entries-during-asar-path-resolution-1786878639952
branch
August 16, 2026 13:04
|
Release Notes Persisted
|
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.
Backport of #52825
See that PR for details.
Notes: Fixed a crash when resolving a path inside a malformed ASAR archive that contains cyclic link entries.