FileStorage segfaults parsing singleton tags (Feature #2424)
Description
OpenCV 2.4.2 cv::FileStorage segfaults when parsing singleton tags.
It will happily parse empty tags of the form:
<variable></variable>
But fails in the case where an empty tag is expressed in the form:
<variable />
Some libraries such as XML parsers within python automatically condense empty tags into this singleton format, so it would be great to be able to parse them correctly (either simply ignoring the variable or setting it to some default null value)
H
History
Updated by Daniil Osokin over 12 years ago
Hi! Please, attach a test to reproduce this bug.
- Assignee changed from Vadim Pisarevsky to Hilton Bristow
Updated by Daniil Osokin over 12 years ago
- Target version deleted (
2.4.3)
Updated by Vadim Pisarevsky over 12 years ago
since OpenCV itself does not produces singleton tags and the XMLs read using OpenCV are also created using OpenCV, priority of the bug is lowered
- Target version set to 3.0
- Priority changed from Normal to Low
Updated by Kirill Kornyakov almost 12 years ago
Contributors are welcome!
- Tracker changed from Bug to Feature
- Assignee deleted (
Hilton Bristow) - Description changed from OpenCV 2.4.2 cv::FileStorage segfaults when parsing singleton tags. It will ... to OpenCV 2.4.2 cv::FileStorage segfaults when parsing singleton tags. It will ... More
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4434