mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Assert parsing depth >= parser stack depth
Like the comment says popping parsing nodes during incremental parsing might trigger this.
This commit is contained in:
parent
9e7b0d4fa3
commit
c6e83d1d9c
@ -522,7 +522,7 @@ sgml_parsing_pop(struct dom_stack *stack, struct dom_node *node, void *data)
|
||||
}
|
||||
/* It's bigger than when calling done_sgml_parser() in the middle of an
|
||||
* incomplete parsing. */
|
||||
assert(parsing->depth == parser->stack.depth);
|
||||
assert(parsing->depth >= parser->stack.depth);
|
||||
}
|
||||
|
||||
done_dom_string(&parsing->incomplete);
|
||||
|
Loading…
x
Reference in New Issue
Block a user