occt: master 60fddce4

Author Committer Branch Timestamp Parent
abv abv master 2018-05-25 18:26:45 master 61ace3dc
Changeset 0029669: Crash on opening a document with same Ocaf attributes with different IDs

Added protection against clash of attributes with the same GUID when more than one attribute of the same type but with different GUIDs are stored in the file.
If attribute with default GUID has already been read, then adding next empty attribute of the same type (done at start of its reading) will fail; in such case another attempt is made with Null GUID.
mod - src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx Diff File
mod - src/XmlMDF/XmlMDF.cxx Diff File
add - tests/bugs/caf/bug29669 Diff File