summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAimee Linden <aimee@lindenlab.com>2010-07-12 17:54:02 +0100
committerAimee Linden <aimee@lindenlab.com>2010-07-12 17:54:02 +0100
commitefb72e66d0e091121e9e616125b3162fb69e97b5 (patch)
tree04f3364a5520f49116a97439d8bb5ba9b1460aa3
parentd3f114d6901877bb79ae9719f59d681fa6a9d494 (diff)
SNOW-484/DEV-51808 FIXED Recursive animations can crash viewer
-rw-r--r--doc/contributions.txt1
-rw-r--r--indra/llcharacter/llkeyframemotion.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/doc/contributions.txt b/doc/contributions.txt
index 8c6bd5e0fe..c8125c675f 100644
--- a/doc/contributions.txt
+++ b/doc/contributions.txt
@@ -517,6 +517,7 @@ Ringo Tuxing
Robin Cornelius
SNOW-108
SNOW-204
+ SNOW-484
VWR-2488
VWR-9557
VWR-11128
diff --git a/indra/llcharacter/llkeyframemotion.cpp b/indra/llcharacter/llkeyframemotion.cpp
index f4dc3b927b..7bc9e97eb1 100644
--- a/indra/llcharacter/llkeyframemotion.cpp
+++ b/indra/llcharacter/llkeyframemotion.cpp
@@ -1248,6 +1248,12 @@ BOOL LLKeyframeMotion::deserialize(LLDataPacker& dp)
return FALSE;
}
+ if(mJointMotionList->mEmoteName==mID.asString())
+ {
+ llwarns << "Malformed animation mEmoteName==mID" << llendl;
+ return FALSE;
+ }
+
//-------------------------------------------------------------------------
// get loop
//-------------------------------------------------------------------------