From 38fe8d8b38d901f51de09ee26e733a8ec7bbc000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dietrich?= Date: Tue, 18 May 2021 00:56:45 +0200 Subject: 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. --- intern/cycles/render/alembic_read.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'intern') 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 &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()); -- cgit v1.2.3