FileStorage segfaults parsing singleton tags (Feature #2424)


Added by Hilton Bristow over 12 years ago. Updated over 9 years ago.


Status:Open Start date:2012-10-10
Priority:Low Due date:
Assignee:- % Done:

0%

Category:core
Target version:3.0
Difficulty: Pull request:

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

Also available in: Atom PDF