From 91021bf905286bcb5ce0f14e19a55b4800a9ce99 Mon Sep 17 00:00:00 2001 From: Kadah_Coba Date: Tue, 14 Dec 2010 12:30:32 -0800 Subject: VWR-24263: Crash fix for notecards with negative text length --- indra/llinventory/llnotecard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/llinventory') 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; -- cgit v1.2.3