1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-28 01:35:32 +00: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:
Jonas Fonseca 2006-01-28 03:23:06 +01:00 committed by Jonas Fonseca
parent d92a074e40
commit 00c4e0bfa2

View File

@ -457,6 +457,9 @@ scan_sgml_element_token(struct dom_scanner *scanner, struct dom_scanner_token *t
string = token->string.string;
real_length = 0;
} else if (string == scanner->end) {
/* It is incomplete. */
} else if (is_sgml_ident(*string)) {
token->string.string = string;
scan_sgml(scanner, string, SGML_CHAR_IDENT);