mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
6c81cd26cc
When a section was empty in a configuration tree (no children - this is allowed) and we were looking for a config node inside that section, the _find_config_node function incorrectly returned the section itself if the node inside that section was not found. For example the configuration below: The config: abc { } And a function call to get the "def" node inside "abc" section: _find_config_node(..., "abc/def") ...returned the "abc" node instead of NULL ("def" not found). This in turn caused segfaults in the code using lookups in such a configuration tree as we (correctly) expected that the node returned was always the one we were looking for or NULL if not found. But if incorrect node was returned instead, we processed that as if this was the node we were looking for and so we processed its value as well. But sections don't have values => segfault. |
||
---|---|---|
.. | ||
datastruct | ||
ioctl | ||
misc | ||
mm | ||
regex | ||
.exported_symbols | ||
libdevmapper.h | ||
libdevmapper.pc.in | ||
libdm-common.c | ||
libdm-common.h | ||
libdm-config.c | ||
libdm-deptree.c | ||
libdm-file.c | ||
libdm-report.c | ||
libdm-string.c | ||
Makefile.in |