You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the m_parent pointer is invalidated (due to the realloc) for all grand-children of that node.
To reproduce: This happens with the attached xml file, where dummyRoot/set1 has 9 (> XMLTREE_CHILDSIZE = 8) children. When XmlNode_createChild is called for dummyRoot/set1/clock8 the m_parent gets invalidated for dummyRoot/gain/k etc.
During parsing, if in
XmlNode_createChild
cpo_array_preallocate
is called bycpo_array_push
in linebsxml-json/bsxml.c
Line 186 in 981ab94
the
m_parent
pointer is invalidated (due to the realloc) for all grand-children of thatnode
.To reproduce: This happens with the attached xml file, where
dummyRoot/set1
has 9 (>XMLTREE_CHILDSIZE
= 8) children. WhenXmlNode_createChild
is called fordummyRoot/set1/clock8
them_parent
gets invalidated fordummyRoot/gain/k
etc.testFAIL.zip
Currently, I have no patch for this, just the workaround to not use the parent pointer at all.
Furthermore, the reallocated memory in
cpo_array_preallocate
should also be nullified (similar ascpo_array_create
callscalloc
fora->v
).See modelica-3rdparty/ExternData#26 for the downstream issue.
The text was updated successfully, but these errors were encountered: