Skip to content

YamlReaderOptions.MaxAliasExpansionDepth Property

Definition

Namespace: Corvus.Yaml
Assembly: Corvus.Text.Json.dll

MaxAliasExpansionDepth()

Gets the maximum depth for alias expansion to prevent exponential expansion attacks (billion laughs). Defaults to 64.

public int MaxAliasExpansionDepth { get; set; }

Returns

int

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue