A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/AngleSharp/AngleSharp/issues/1174 below:

IndexOutOfRangeException in AngleSharp.Common.ArrayPoolBuffer.Append · Issue #1174 · AngleSharp/AngleSharp · GitHub

Prerequisites Description

Malformed input found by fuzzer crashes HtmlParser.ParseDocument.

Steps to Reproduce
var html = Encoding.UTF8.GetString(File.ReadAllBytes("crash-1a949173befa2cc26c41985adefc49b3d79cdad4.txt"));
var parser = new AngleSharp.Html.Parser.HtmlParser();
parser.ParseDocument(html.ToCharArray(), 0);

Input file appended:

crash-1a949173befa2cc26c41985adefc49b3d79cdad4.txt

Expected Behavior

Don't crash :)

Actual Behavior

Crash :(

Possible Solution / Known Workarounds

I see recent changes to ArrayPoolBuffer.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4