mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 11:41:51 +02:00
Some more safety for RichText parser
This commit is contained in:
@@ -127,6 +127,10 @@ void RichLabel::updateRichText()
|
||||
|
||||
originalTextPos++;
|
||||
}
|
||||
|
||||
if(stackPos != -1)
|
||||
throw RichTextParseException("Unclosed region");
|
||||
|
||||
finalText[finalTextPos] = 0;
|
||||
displayText = std::string(finalText);
|
||||
}
|
||||
|
Reference in New Issue
Block a user