Alembic procedural: fix crash accessing invalid ICompoundProperties

Although it is not a pointer, accessing an ICompoundProperty
dereferences a pointer under the hood, so check for validity.
This commit is contained in:
Kévin Dietrich 2021-05-18 00:56:45 +02:00
parent 73080ddf38
commit 38fe8d8b38
1 changed files with 4 additions and 0 deletions

View File

@ -894,6 +894,10 @@ static void parse_requested_attributes_recursive(const AttributeRequestSet &requ
const ICompoundProperty &arb_geom_params,
vector<PropHeaderAndParent> &requested_properties)
{
if (!arb_geom_params.valid()) {
return;
}
for (const AttributeRequest &req : requested_attributes.requests) {
const PropertyHeader *property_header = arb_geom_params.getPropertyHeader(req.name.c_str());