Skip to content

StylesheetParser.Parse throws ArgumentOutOfRangeException #101

Closed
@Metalnem

Description

@Metalnem

StylesheetParser.Parse throws an ArgumentOutOfRangeException with the following message:

An unhandled exception of type 'System.ArgumentOutOfRangeException'
occurred in System.Private.CoreLib.dll: 'A valid UTF32 value is between
0x000000 and 0x10ffff, inclusive, and should not include surrogate
codepoint values (0x00d800 ~ 0x00dfff).'

You can run the following code to reproduce it (the path variable should contain the path to the file extracted from the attached archive):

using (var file = File.OpenRead(path))
{
  var parser = new StylesheetParser();
  parser.Parse(file);
}

Found via SharpFuzz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions