]> OCCT Git - occt-copy.git/commit
0027454: Application hangs while opening a non-OCAF XML file
authormsv <msv@opencascade.com>
Fri, 29 Apr 2016 16:31:13 +0000 (19:31 +0300)
committermsv <msv@opencascade.com>
Tue, 10 May 2016 15:25:08 +0000 (18:25 +0300)
commite40faeb189cbc7d5807f88205ba2d4d373cdb51f
tree93c033efb95f126ee294a6991d2e9e60960a379d
parent17c3d95053583a42dc63b8eb4f2c5475686bce4c
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.
src/LDOM/LDOM_XmlReader.cxx
src/PCDM/PCDM_ReadWriter.cxx
tests/bugs/caf/bug27454 [new file with mode: 0644]
tests/bugs/caf/bug27454_1 [new file with mode: 0644]