mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Do not attempt to read *string when string == scanner->end
There might be other places that needs to be reviewd for this.
This commit is contained in:
parent
d92a074e40
commit
00c4e0bfa2
@ -457,6 +457,9 @@ scan_sgml_element_token(struct dom_scanner *scanner, struct dom_scanner_token *t
|
|||||||
string = token->string.string;
|
string = token->string.string;
|
||||||
real_length = 0;
|
real_length = 0;
|
||||||
|
|
||||||
|
} else if (string == scanner->end) {
|
||||||
|
/* It is incomplete. */
|
||||||
|
|
||||||
} else if (is_sgml_ident(*string)) {
|
} else if (is_sgml_ident(*string)) {
|
||||||
token->string.string = string;
|
token->string.string = string;
|
||||||
scan_sgml(scanner, string, SGML_CHAR_IDENT);
|
scan_sgml(scanner, string, SGML_CHAR_IDENT);
|
||||||
|
Loading…
Reference in New Issue
Block a user