summaryrefslogtreecommitdiff
path: root/indra/llinventory
diff options
context:
space:
mode:
authorKadah_Coba <none@none>2010-12-14 12:30:32 -0800
committerKadah_Coba <none@none>2010-12-14 12:30:32 -0800
commit91021bf905286bcb5ce0f14e19a55b4800a9ce99 (patch)
treee23fb4ef6a5373af5b8949f034b1d2144b5fd1f8 /indra/llinventory
parent9c97a200bebe310f91c9ab181fbe337eeab30aaa (diff)
VWR-24263: Crash fix for notecards with negative text length
Diffstat (limited to 'indra/llinventory')
-rw-r--r--indra/llinventory/llnotecard.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llinventory/llnotecard.cpp b/indra/llinventory/llnotecard.cpp
index 62829c284f..69152cefe0 100644
--- a/indra/llinventory/llnotecard.cpp
+++ b/indra/llinventory/llnotecard.cpp
@@ -199,7 +199,7 @@ bool LLNotecard::importStream(std::istream& str)
return FALSE;
}
- if(text_len > mMaxText)
+ if(text_len > mMaxText || text_len < 0)
{
llwarns << "Invalid Linden text length: " << text_len << llendl;
return FALSE;