Skip to content

fix: reject documents whose aliases expand past 10000 nodes - #96

Closed
bfabio wants to merge 1 commit into
fix/report-every-unknown-keyfrom
fix/limit-yaml-alias-expansion
Closed

bfabio wants to merge 1 commit into
fix/report-every-unknown-keyfrom
fix/limit-yaml-alias-expansion

Conversation

@bfabio

@bfabio bfabio commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

The decoder copies the anchored value at every alias, so anchors that
alias each other three times per level kept a 470 byte publiccode.yml
file busy for seconds and a 20 level one for minutes. Counting the
expansion on the AST first takes time linear in the document.

The decoder copies the anchored value at every alias, so anchors that
alias each other three times per level kept a 470 byte publiccode.yml
file busy for seconds and a 20 level one for minutes. Counting the
expansion on the AST first takes time linear in the document.
@bfabio
bfabio added this pull request to stack #97 November 27, 2026 14:45
@bfabio
bfabio enabled stacked auto-merge (rebase) November 27, 2026 14:45
stacked auto-merge was automatically disabled November 27, 2026 14:48

Pull Request is not mergeable

@bfabio

bfabio commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Already on main.

@bfabio bfabio closed this Nov 27, 2026
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.

1 participant