occt: master 18151f1a

Author Committer Branch Timestamp Parent
msv bugmaster master 2016-04-29 16:31:13 master 15a954de
Changeset 0027454: Application hangs while opening a non-OCAF XML file

1) Add protection against accessing null pointer in PCDM_ReadWriter::FileFormat.

2) In LDOM_XmlReader::ReadRecord, take into account that the character '>' can have no special meaning (e.g., in a text), and we must read the data behind this character to complete the current tag reading. This treatment concerns the mode of work when myTagPerStep is true.

3) Create a test case of reading of XML file not related to OCAF document.

Test case was added.
mod - src/LDOM/LDOM_XmlReader.cxx Diff File
mod - src/PCDM/PCDM_ReadWriter.cxx Diff File
add - tests/bugs/caf/bug27454 Diff File
add - tests/bugs/caf/bug27454_1 Diff File