Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2021-05-18 01:56:45 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2021-05-18 01:56:45 +0300
commit38fe8d8b38d901f51de09ee26e733a8ec7bbc000 (patch)
tree6c92fc3182fbc8f027b1648416314597c898551f /intern/cycles/render/alembic_read.cpp
parent73080ddf38bf568f8f7bc05e64c83a41fe92fd2e (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/cycles/render/alembic_read.cpp')
-rw-r--r--intern/cycles/render/alembic_read.cpp4
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());