mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +01:00
Fix memory corruption issue in schema parser.
This commit is contained in:
parent
11af5466f0
commit
f604f11ada
@ -88,8 +88,10 @@ public:
|
||||
}
|
||||
|
||||
if ((itr = object.find("allOf")) != object.end()) {
|
||||
const AdapterType &childNode = resolveReference<AdapterType>(deref, schema, itr->second);
|
||||
schema.addConstraint(makeAllOfConstraint(childNode, deref));
|
||||
const AdapterType originalChildNode = itr->second;
|
||||
const AdapterType &actualChildNode = resolveReference<AdapterType>(deref, schema,
|
||||
originalChildNode);
|
||||
schema.addConstraint(makeAllOfConstraint(actualChildNode, deref));
|
||||
}
|
||||
|
||||
if ((itr = object.find("anyOf")) != object.end()) {
|
||||
|
Loading…
Reference in New Issue
Block a user