summaryrefslogtreecommitdiff
path: root/indra/newview/llavatariconctrl.cpp
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-01-17 10:19:27 -0800
committerTodd Stinson <stinson@lindenlab.com>2012-01-17 10:19:27 -0800
commit8cf6b9cb929ff37fc6febe1f4ede4efa526260d9 (patch)
treefb81fc741a515279a4602c1b64abcc7d443cf947 /indra/newview/llavatariconctrl.cpp
parentfa03d3ee3d9bcf213754250a8180a65156bffe8d (diff)
parent64c45cbd1ace677456db56d1a506f2fe44b6e9c6 (diff)
Pull and merge from https://bitbucket.org/lindenlab/viewer-development.
Diffstat (limited to 'indra/newview/llavatariconctrl.cpp')
-rwxr-xr-x[-rw-r--r--]indra/newview/llavatariconctrl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llavatariconctrl.cpp b/indra/newview/llavatariconctrl.cpp
index 42e7decec1..b539ac38ed 100644..100755
--- a/indra/newview/llavatariconctrl.cpp
+++ b/indra/newview/llavatariconctrl.cpp
@@ -75,6 +75,9 @@ void LLAvatarIconIDCache::load ()
LLUUID icon_id;
LLDate date;
+ if (line.length()<=uuid_len*2)
+ continue; // short line, bail out to prevent substr calls throwing exception.
+
std::string avatar_id_str = line.substr(0,uuid_len);
std::string icon_id_str = line.substr(uuid_len,uuid_len);