1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00
elinks/src/dom
Kalle Olavi Niemitalo 8465b19d0c Bug 1071: Fix null-ptr crash in get_dom_node_child
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.
2009-04-04 21:56:53 +03:00
..
css Patch 2: Modifications to the remaining parts of ELinks 2008-11-01 22:20:25 +02:00
sgml DOM: Change code documentation to be Doxygen "compliant" 2006-12-10 01:17:35 +01:00
test Fix sgml-parser so it compiles 2008-07-03 01:45:45 +02:00
code.h DOM: Change code documentation to be Doxygen "compliant" 2006-12-10 01:17:35 +01:00
configuration.c Fix memory leak in the DOM configuration module 2008-06-21 00:19:15 +02:00
configuration.h Fix memory leak in the DOM configuration module 2008-06-21 00:19:15 +02:00
Doxyfile New macro LIST_OF for better Doxygen support. 2007-07-26 22:45:51 +03:00
Makefile DOM test: add test/ to SUBDIRS so DOM test is run for 'make test' 2007-05-26 13:10:55 +02:00
node.c Bug 1071: Fix null-ptr crash in get_dom_node_child 2009-04-04 21:56:53 +03:00
node.h bug 1067: Assertions and comments about done_dom_node(). 2009-02-15 03:39:00 +02:00
scanner.c Add basic support for requesting error detection; SGML scanner part missing 2006-01-07 04:21:39 +01:00
scanner.h Patch 2: Modifications to the remaining parts of ELinks 2008-11-01 22:20:25 +02:00
select.c Fix compiler errors without HAVE_VARIADIC_MACROS. 2007-03-11 12:22:02 +02:00
select.h Make init_dom_select() take dom_string struct 2005-12-28 15:57:37 +01:00
stack.c bug 1067: Assertions and comments about done_dom_node(). 2009-02-15 03:39:00 +02:00
stack.h bug 1067: Assertions and comments about done_dom_node(). 2009-02-15 03:39:00 +02:00
string.h Bug 1004: Fix implicit declarations of c_* functions 2008-11-01 22:27:08 +02:00