aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-08 21:56:16 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-08 21:56:16 +0100
commit66ec83b862ea2a8dbda1c1f3663af88a8d12d9bc (patch)
tree6f0bb61f0bf6b446cbc640822b195750ea950400
parent684a3bc56d5c40ed3eb54ca263751fa4724e73fa (diff)
Fix infinite loop on end of line on identifier
-rw-r--r--src/HtmlParser.c2
1 files changed, 2 insertions, 0 deletions
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;