diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-17 15:38:06 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-17 15:38:06 (GMT) |
| commit | b835861519f5a636e040cde209d090468dd0517b (patch) | |
| tree | c955219c5746bd7609618c7c1823967038c607e2 /src/interface/RichLabel.cpp | |
| parent | 614a90cfc677313473d5a6163d93e61fa655dfca (diff) | |
| download | powder-b835861519f5a636e040cde209d090468dd0517b.zip powder-b835861519f5a636e040cde209d090468dd0517b.tar.gz | |
Some more safety for RichText parser
Diffstat (limited to 'src/interface/RichLabel.cpp')
| -rw-r--r-- | src/interface/RichLabel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface/RichLabel.cpp b/src/interface/RichLabel.cpp index 894cf9e..3ee12ce 100644 --- a/src/interface/RichLabel.cpp +++ b/src/interface/RichLabel.cpp @@ -127,6 +127,10 @@ void RichLabel::updateRichText() originalTextPos++; } + + if(stackPos != -1) + throw RichTextParseException("Unclosed region"); + finalText[finalTextPos] = 0; displayText = std::string(finalText); } |
