VWR-24263: Crash fix for notecards with negative text length

master
Kadah_Coba 2010-12-14 12:30:32 -08:00
parent 9c97a200be
commit 91021bf905
1 changed files with 1 additions and 1 deletions

View File

@ -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;