Skip to content
Snippets Groups Projects
Commit b4e106ec authored by Brad Payne (Vir Linden)'s avatar Brad Payne (Vir Linden)
Browse files

SH-2747 FIX

parent 95bc7986
No related branches found
No related tags found
No related merge requests found
...@@ -75,6 +75,9 @@ void LLAvatarIconIDCache::load () ...@@ -75,6 +75,9 @@ void LLAvatarIconIDCache::load ()
LLUUID icon_id; LLUUID icon_id;
LLDate date; 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 avatar_id_str = line.substr(0,uuid_len);
std::string icon_id_str = line.substr(uuid_len,uuid_len); std::string icon_id_str = line.substr(uuid_len,uuid_len);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment