Skip to content

ANT-2026-3N5ENNBZ: Bound fake method generic parameter counts - #4375

Open
siegfriedpammer wants to merge 1 commit into
masterfrom
fix/bound-fake-method-generic-count
Open

siegfriedpammer wants to merge 1 commit into
masterfrom
fix/bound-fake-method-generic-count

Conversation

@siegfriedpammer

Copy link
Copy Markdown
Member

Summary

An unresolved MemberRef can claim an enormous generic parameter count, causing CreateFakeMethod to allocate one type parameter per claimed entry. This caps unresolved fake methods at 64 generic parameters. Invalid attribute constructor signatures are retained as diagnostic attributes so decompilation can continue and show an error expression instead of aborting.

Validation

  • Focused regression tests: 4 passed
  • Decompiler test suite: 3,896 passed, 49 skipped
  • Debug solution build: passed with 0 warnings

ANT-2026-3N5ENNBZ

Assisted-by: GPT-6 Luna:gpt-6-luna:OpenCode

Malformed MemberRefs can claim an enormous generic arity and force unbounded allocation while resolving a missing method. Limit fake method materialization and preserve a diagnostic for attributes whose constructor signatures exceed that limit.

Assisted-by: GPT-6 Luna:gpt-6-luna:OpenCode
@siegfriedpammer siegfriedpammer changed the title ANT-2026-3N5ENNBZ Bound fake method generic parameter counts ANT-2026-3N5ENNBZ: Bound fake method generic parameter counts Nov 28, 2026

@christophwille christophwille left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 1e05e1c against ANT-2026-3N5ENNBZ: no findings. This comes from reading the diff and the code around it; I did not run a reproducer.

Assisted-by: Claude:claude-fable-5-2:Claude Code

This branch has not been deployed

No deployments
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.

2 participants