mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-12 18:55:09 +00:00
LibWeb: Crash instead of spinning if parse_drawto fails to match
If parse_drawto fails to match anything, it will spin forever. Instead, print out the character that failed to match and assert false.
This commit is contained in:
@@ -133,6 +133,9 @@ void PathDataParser::parse_drawto() {
|
||||
parse_smooth_quadratic_bezier_curveto();
|
||||
} else if (match('A') || match('a')) {
|
||||
parse_elliptical_arc();
|
||||
} else {
|
||||
dbg() << "PathDataParser::parse_drawto failed to match: '" << ch() << "'";
|
||||
TODO();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user