Some more safety for RichText parser
This commit is contained in:
parent
614a90cfc6
commit
b835861519
@ -127,6 +127,10 @@ void RichLabel::updateRichText()
|
||||
|
||||
originalTextPos++;
|
||||
}
|
||||
|
||||
if(stackPos != -1)
|
||||
throw RichTextParseException("Unclosed region");
|
||||
|
||||
finalText[finalTextPos] = 0;
|
||||
displayText = std::string(finalText);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user