From cb7d12ea4d67278edaf0240a67221ca5d5d8e93c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 9 Feb 2016 10:05:07 +0000 Subject: crashtesting: crash on loading moz414782-1.svg Change-Id: I1324b902c0790350bc8c44e7d63ce45915e3b33f --- basegfx/source/tools/stringconversiontools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'basegfx') 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 -- cgit