diff options
author | Eric M. Tulla (BigPapi) <tulla@lindenlab.com> | 2010-02-11 11:06:42 -0500 |
---|---|---|
committer | Eric M. Tulla (BigPapi) <tulla@lindenlab.com> | 2010-02-11 11:06:42 -0500 |
commit | 71ae50c56b7e5e45df438bc450fead9424e70034 (patch) | |
tree | e4148ff5d4db1636b3b63839ab04b61d7e502ec8 /indra/newview | |
parent | 543a75919aff1e82bbc38a731f1fc359201f13cc (diff) |
EXT-4387 - Possible fix. No repro, but added an extra safety check and warning the only place in the function that it appears that something could go wrong
if we have inventory corruption and InventoryType is wearable but the wearable type bitfield is in a broken state.
-Reviewed by vir.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llappearancemgr.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index 0cceba6cb0..a78dede344 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -666,6 +666,11 @@ void LLAppearanceManager::filterWearableItems( if (!item->isWearableType()) continue; EWearableType type = item->getWearableType(); + if(type < 0 || type >= WT_COUNT) + { + LL_WARNS("Appearance") << "Invalid wearable type. Type does not match wearable flag bitfield." << LL_ENDL; + continue; + } items_by_type[type].push_back(item); } |