Skip to content

Nested types do not respect TypeNameParseOptions.MaxNodes #106991

Closed

Description

@jkotas

Repro

TypeName.Parse("A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A")

Expected result

Fails with InvalidOperationException due to default MaxNodes count exceeded

Actual result:

Parses successfully.

Context: #103713 (comment)

Activity

  1. added
    binaryformatter-migration
    on Aug 26, 2024
  2. added this to the 9.0.0 milestone on Aug 26, 2024
  3. dotnet-policy-service commented on Aug 26, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'binaryformatter-migration': @adamsitnik, @bartonjs, @jeffhandley, @terrajobst

  4. jkotas commented on Aug 26, 2024

    @jkotas
    MemberAuthor

    PR with the fix: #106334

  5. dotnet-policy-service commented on Aug 26, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-system-reflection-metadata
    See info in area-owners.md if you want to be subscribed.

  6. added
    in-pr
    on Aug 30, 2024
  7. locked and limited conversation to collaborators on Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Reflection.Metadatabinaryformatter-migrationin-pr

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions