aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/etc
diff options
context:
space:
mode:
authorAleric Inglewood2010-10-25 16:02:36 +0200
committerAleric Inglewood2010-10-25 16:02:36 +0200
commit17e2c3f8999d93bb59deb7ac0c289ed2157a3f5e (patch)
treebb00d82b96d5cfc7c272c28deeeb00c0ec996592 /linden/etc
parentValidate textures starting with 00 too. (diff)
downloadmeta-impy-17e2c3f8999d93bb59deb7ac0c289ed2157a3f5e.zip
meta-impy-17e2c3f8999d93bb59deb7ac0c289ed2157a3f5e.tar.gz
meta-impy-17e2c3f8999d93bb59deb7ac0c289ed2157a3f5e.tar.bz2
meta-impy-17e2c3f8999d93bb59deb7ac0c289ed2157a3f5e.tar.xz
Fix possible crash on llassert_always(purge_list.size() >= entries_to_purge)
This horrible noobish code checked if num_entries > sCacheMaxEntries and then goes on to assign (num_entries-empty_entries) - sCacheMaxEntries to an U32 entries_to_purge. Obviously this can lead to an abitrary large value of entries_to_purge with as result a crash due to the llassert_always. This bug must have been extremely rare since it only happens when someone decreases their cache size and has more empty entries in their entries file than the total number of entries minus the new cache size.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions