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