mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Avoided a possible crash in ValueTree::readFromStream when loading corrupt data.
This commit is contained in:
parent
6fbc00f0ce
commit
1c19301b1f
1 changed files with 3 additions and 0 deletions
|
|
@ -1022,6 +1022,9 @@ ValueTree ValueTree::readFromStream (InputStream& input)
|
|||
{
|
||||
ValueTree child (readFromStream (input));
|
||||
|
||||
if (! child.isValid())
|
||||
return v;
|
||||
|
||||
v.object->children.add (child.object);
|
||||
child.object->parent = v.object;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue