diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-31 20:48:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-31 20:50:35 +0000 |
commit | a91be216f2effc87a7887490939a5218a31f1cb7 (patch) | |
tree | 2106e2e0ec0dd0b6ca9a497dae4772aea72777cf /basctl | |
parent | 30e2e49294731d4732f095779fd988b42f70f336 (diff) |
don't access beyond end of empty string
Change-Id: Ie772d7a60fd65b93ca66c543eb2786ce7f109004
(cherry picked from commit 978172bb00529b6283502abf7552fb0e828a7df5)
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/brkdlg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/basctl/source/basicide/brkdlg.cxx b/basctl/source/basicide/brkdlg.cxx index 7acaa5b1025a..f8dfe9f31788 100644 --- a/basctl/source/basicide/brkdlg.cxx +++ b/basctl/source/basicide/brkdlg.cxx @@ -47,6 +47,8 @@ bool lcl_ParseText(OUString const &rText, size_t& rLineNr ) // of just spaces.) OUString aText( rText.replaceAll(" ", OUString())); + if (aText.isEmpty()) + return false; sal_Unicode cFirst = aText[0]; if (cFirst != '#' && !(cFirst >= '0' && cFirst <= '9')) return false; |