summaryrefslogtreecommitdiff
path: root/indra/newview/llavatariconctrl.cpp
diff options
context:
space:
mode:
authorDebi King (Dessie) <dessie@lindenlab.com>2012-01-20 15:40:43 -0500
committerDebi King (Dessie) <dessie@lindenlab.com>2012-01-20 15:40:43 -0500
commit6298daf266369dbd3600c5fdf287f9c680b2a897 (patch)
tree270a7d6d12e444d739b85ad9d89e0001621b20a2 /indra/newview/llavatariconctrl.cpp
parent7c0b98aa83faacf27da2b71e186399e232a1a376 (diff)
parent0915ce7834f8e36c53e0790c2946b952a12a74c6 (diff)
merge
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);