Skip to content

StylesheetParser.Parse throws ArgumentOutOfRangeException #101

Closed

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.

Activity

  1. TylerBrinks commented on Nov 5, 2020

    @TylerBrinks
    Owner

    Please verify in version 4.0 if the issue still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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