mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05: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:
parent
8bbb7e25e6
commit
65afb40fc5
Notes:
sideshowbarker
2024-07-19 03:23:55 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/65afb40fc50 Pull-request: https://github.com/SerenityOS/serenity/pull/3223
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue