1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-25 12:55:50 +03:00
occt/tests/bugs/caf/bug27454
msv 18151f1aa1 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.
2016-05-12 11:09:15 +03:00

19 lines
473 B
Plaintext

puts "REQUIRED All: DDocStd_Open : Error"
puts "========"
puts "OCC27454"
puts "========"
puts ""
###################################################
## Application hangs while opening a non-OCAF XML file
###################################################
cpulimit 10
catch {Open [locate_data_file bug27454_test.xml] D -stream} msg
cpulimit
if ![regexp {DDocStd_Open : Error} $msg] {
puts "Error: reader did not report an error reading the file of unknown format"
}