YamlDotNet icon indicating copy to clipboard operation
YamlDotNet copied to clipboard

YamlStream.Load terminates the process with StackOverflowException

Open Metalnem opened this issue 6 years ago • 1 comments
trafficstars

YamlStream.Load terminates the process by throwing a StackOverflowException when loading the document from the attached archive. As far as I know, there is no way to set the recursion limit on YamlStream. You can run the following code to reproduce it (the path variable should contain the path to the extracted file):

using (var file = File.OpenText(path))
{
  new YamlStream().Load(file);
}

Found via SharpFuzz.

Metalnem avatar Dec 24 '18 14:12 Metalnem