diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2021-05-18 01:56:45 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2021-05-18 01:56:45 +0300 |
commit | 38fe8d8b38d901f51de09ee26e733a8ec7bbc000 (patch) | |
tree | 6c92fc3182fbc8f027b1648416314597c898551f /intern | |
parent | 73080ddf38bf568f8f7bc05e64c83a41fe92fd2e (diff) |
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.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/render/alembic_read.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/render/alembic_read.cpp b/intern/cycles/render/alembic_read.cpp index 9fdc7561957..4d09c40b07b 100644 --- a/intern/cycles/render/alembic_read.cpp +++ b/intern/cycles/render/alembic_read.cpp @@ -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()); |