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

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

Thanks. I have another bug report for a different but related issue and both should be tackled in parallel.

aaubry avatar Jun 10 '19 16:06 aaubry