You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While fuzzing another library an input was found that leads to an stack overflow in YamlStreams Load() funktion.
I would assume thats not wanted behaviour.
Stacktrace:
Stack overflow.
Repeat 19262 times:
at YamlDotNet.RepresentationModel.YamlAliasNode.Equals(System.Object)
at System.Collections.Generic.ObjectEqualityComparer1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Equals(System.__Canon, System.__Canon) at System.Collections.Generic.Dictionary2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].FindValue(System.__Canon)
at System.Collections.Generic.Dictionary2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].get_Item(System.__Canon) at YamlDotNet.Helpers.OrderedDictionary2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].get_Item(System.__Canon)
at YamlDotNet.RepresentationModel.YamlMappingNode.ResolveAliases(YamlDotNet.RepresentationModel.DocumentLoadingState)
at YamlDotNet.RepresentationModel.DocumentLoadingState.ResolveAliases()
at YamlDotNet.RepresentationModel.YamlDocument..ctor(YamlDotNet.Core.IParser)
at YamlDotNet.RepresentationModel.YamlStream.Load(YamlDotNet.Core.IParser)
at YamlDotNet.RepresentationModel.YamlStream.Load(System.IO.TextReader)
at FuzzTest.Program.Main(System.String[])
To Reproduce
var yamlText = "{ *a, &a }";
var yamlstream = new YamlStream();
var reader = new StringReader(yamlText);
yamlstream.Load(reader);
The text was updated successfully, but these errors were encountered:
Describe the bug
While fuzzing another library an input was found that leads to an stack overflow in YamlStreams Load() funktion.
I would assume thats not wanted behaviour.
Stacktrace:
Stack overflow.
Repeat 19262 times:
at YamlDotNet.RepresentationModel.YamlAliasNode.Equals(System.Object)
at System.Collections.Generic.ObjectEqualityComparer
1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Equals(System.__Canon, System.__Canon) at System.Collections.Generic.Dictionary
2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].FindValue(System.__Canon)at System.Collections.Generic.Dictionary
2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].get_Item(System.__Canon) at YamlDotNet.Helpers.OrderedDictionary
2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].get_Item(System.__Canon)at YamlDotNet.RepresentationModel.YamlMappingNode.ResolveAliases(YamlDotNet.RepresentationModel.DocumentLoadingState)
at YamlDotNet.RepresentationModel.DocumentLoadingState.ResolveAliases()
at YamlDotNet.RepresentationModel.YamlDocument..ctor(YamlDotNet.Core.IParser)
at YamlDotNet.RepresentationModel.YamlStream.Load(YamlDotNet.Core.IParser)
at YamlDotNet.RepresentationModel.YamlStream.Load(System.IO.TextReader)
at FuzzTest.Program.Main(System.String[])
To Reproduce
var yamlText = "{ *a, &a }";
var yamlstream = new YamlStream();
var reader = new StringReader(yamlText);
yamlstream.Load(reader);
The text was updated successfully, but these errors were encountered: