Removed crash vulnerability to malevolently malformed notecards.
This commit is contained in:
@@ -203,7 +203,7 @@ bool LLNotecard::importStream(std::istream& str)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(text_len > mMaxText)
|
if(text_len < 0 || text_len > mMaxText)
|
||||||
{
|
{
|
||||||
llwarns << "Invalid Linden text length: " << text_len << llendl;
|
llwarns << "Invalid Linden text length: " << text_len << llendl;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user