Skip to content
Snippets Groups Projects
Commit 91021bf9 authored by Kadah_Coba's avatar Kadah_Coba
Browse files

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

parent 9c97a200
No related branches found
No related tags found
No related merge requests found
...@@ -199,7 +199,7 @@ bool LLNotecard::importStream(std::istream& str) ...@@ -199,7 +199,7 @@ bool LLNotecard::importStream(std::istream& str)
return FALSE; return FALSE;
} }
if(text_len > mMaxText) if(text_len > mMaxText || text_len < 0)
{ {
llwarns << "Invalid Linden text length: " << text_len << llendl; llwarns << "Invalid Linden text length: " << text_len << llendl;
return FALSE; return FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment