mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-27 02:56:18 -04:00
8465b19d0c
struct dom_node contains a union that contains various structs that have members of type struct dom_node * in them. get_dom_node_list_by_type returns the address (struct dom_node **) of one of those members, or NULL. However the member itself can also be NULL if no nodes have been added to the list and the list has thus not yet been allocated. (add_to_dom_node_list lazily allocates the lists.) get_dom_node_child did not expect a null pointer there and crashed, as shown in bug 1071. Fix by adding a check so that it treats a NULL list as an empty list. |
||
---|---|---|
.. | ||
css | ||
sgml | ||
test | ||
code.h | ||
configuration.c | ||
configuration.h | ||
Doxyfile | ||
Makefile | ||
node.c | ||
node.h | ||
scanner.c | ||
scanner.h | ||
select.c | ||
select.h | ||
stack.c | ||
stack.h | ||
string.h |