#823 ConfigParser and ParameterTree segfault when accessing an inexistent subtree
Metadata
Property | Value |
---|---|
Reported by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Reported at | Sep 23, 2010 08:04 |
Type | Bug Report |
Version | 2.0 |
Operating System | Unspecified / All |
Last edited by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Last edited at | Nov 2, 2010 17:33 |
Closed by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Closed at | Nov 2, 2010 17:33 |
Closed in version | 2.1 |
Resolution | Fixed |
Comment | in dune-common rev. 6224 |
Description
There is no check for the existence of a subtree. If I get a subtree object for an inexistent subtree and then try to get a value I receive a segfault.
I boiled tis problem down to missing checks and updated the dune/common/test/paramtreetest accordingly. There are two non-detected errors:
- I can access inexistent subtrees
- I can access keys as subtrees
I guess this is all more or less the same problem.
Christian