diff options
| author | Oz Linden <oz@lindenlab.com> | 2012-01-13 09:58:47 -0500 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2012-01-13 09:58:47 -0500 |
| commit | f6b8bfd3da163d275400035b24a969e5147c6352 (patch) | |
| tree | 449fda9ad8f4628e0b1dfac31068a9a5d943a7af /indra/newview/llavatariconctrl.cpp | |
| parent | 6aa48f31c9af1f46335aa64648cda77912aa391d (diff) | |
| parent | 4405910caa34446a19f66cfc35a9270a0e14292f (diff) | |
merge changes for vmrg-215
Diffstat (limited to 'indra/newview/llavatariconctrl.cpp')
| -rwxr-xr-x[-rw-r--r--] | indra/newview/llavatariconctrl.cpp | 3 |
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); |
