From 5cc033c465c026546581a9b3a6da58e9bd833ca8 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Wed, 12 Apr 2023 06:49:04 +0200 Subject: [PATCH] Increase ALIASES_LIMIT to 100 for YamlConfig (#5986) --- .../io/gitlab/arturbosch/detekt/core/config/YamlConfig.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/config/YamlConfig.kt b/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/config/YamlConfig.kt index 38b839686a7..f9b66fdc39d 100644 --- a/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/config/YamlConfig.kt +++ b/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/config/YamlConfig.kt @@ -53,7 +53,7 @@ class YamlConfig internal constructor( private const val YAML_DOC_LIMIT = 102_400 // limit the YAML size to 100 kB // limit the anchors/aliases for collections to prevent attacks from for untrusted sources - private const val ALIASES_LIMIT = 10 + private const val ALIASES_LIMIT = 100 /** * Factory method to load a yaml configuration. Given path must exist and point to a readable file.