summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-02-09 10:05:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-02-09 10:10:34 +0000
commitcb7d12ea4d67278edaf0240a67221ca5d5d8e93c (patch)
tree9c8f5ca10b9ae6e8a01d0ce1327e15119248ac07 /basegfx
parent3d42c1fc15c4c2dacf5da7d6555e3fc7ac10416c (diff)
crashtesting: crash on loading moz414782-1.svg
Change-Id: I1324b902c0790350bc8c44e7d63ce45915e3b33f
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/tools/stringconversiontools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/source/tools/stringconversiontools.cxx b/basegfx/source/tools/stringconversiontools.cxx
index f8181a625a34..8ea862441ee4 100644
--- a/basegfx/source/tools/stringconversiontools.cxx
+++ b/basegfx/source/tools/stringconversiontools.cxx
@@ -50,7 +50,7 @@ namespace basegfx
sal_Int32& io_rPos,
const OUString& rStr)
{
- sal_Unicode aChar( rStr[io_rPos] );
+ sal_Unicode aChar = io_rPos < rStr.getLength() ? rStr[io_rPos] : 0;
OUStringBuffer sNumberString;
// sign