From 66ec83b862ea2a8dbda1c1f3663af88a8d12d9bc Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 8 Nov 2022 21:56:16 +0100 Subject: Fix infinite loop on end of line on identifier --- src/HtmlParser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/HtmlParser.c b/src/HtmlParser.c index 5f57dd3..31a5e70 100644 --- a/src/HtmlParser.c +++ b/src/HtmlParser.c @@ -211,6 +211,7 @@ static int is_attribute_value_char(char c) { case '<': case '>': case '&': + case '\0': return 0; default: return 1; @@ -229,6 +230,7 @@ static int is_identifier_char(char c) { case '>': case '/': case '=': + case '\0': return 0; default: return 1; -- cgit v1.2.3