Some more safety for RichText parser
This commit is contained in:
parent
614a90cfc6
commit
b835861519
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user