summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorHecklezz <tj8@live.com.au>2026-01-21 02:47:00 +1000
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-01-20 19:33:56 +0200
commit5b41bf0744fa29cfe7bd508f0f442f1f953aba19 (patch)
tree2b68ffbe0e3de5a863b1ba1b8d2e3c02dd304c02 /indra
parentc2406b5c2eb181c8417cdc0a0f314cdb8b3f35c8 (diff)
Fix crash in LLConvexDecompositionVHACD::executeStage accessing nullptr
Signed-off-by: Hecklezz <tj8@live.com.au>
Diffstat (limited to 'indra')
-rw-r--r--indra/llphysicsextensionsos/llconvexdecompositionvhacd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llphysicsextensionsos/llconvexdecompositionvhacd.cpp b/indra/llphysicsextensionsos/llconvexdecompositionvhacd.cpp
index 78876f9f36..45a1b8f4ad 100644
--- a/indra/llphysicsextensionsos/llconvexdecompositionvhacd.cpp
+++ b/indra/llphysicsextensionsos/llconvexdecompositionvhacd.cpp
@@ -340,6 +340,12 @@ LLCDResult LLConvexDecompositionVHACD::executeStage(int stage)
out_mesh.setVertices(ch.m_points);
out_mesh.setIndices(ch.m_triangles);
+ if (!mBoundDecomp)
+ {
+ mVHACD->Clean();
+ return LLCD_NULL_PTR;
+ }
+
mBoundDecomp->mDecomposedHulls.push_back(std::move(out_mesh));
}