summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-31 09:23:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-03-09 21:51:22 +0000
commit8645f6d866427bfd82bce1bf96721533c113c077 (patch)
tree5e038e8f1d6515399b12e3afa2f835110c5b19bc /vcl
parent567ee77154c9f5a67a663edfe2f897e00d084124 (diff)
ofz#502 negative index
Change-Id: I2eb3da9d378cd8fdace5ccd644f501f5119f6698
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/svmconverter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/svmconverter.cxx b/vcl/source/gdi/svmconverter.cxx
index efcc250ecf6d..e4a00a11feaa 100644
--- a/vcl/source/gdi/svmconverter.cxx
+++ b/vcl/source/gdi/svmconverter.cxx
@@ -974,7 +974,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
// #106172# Add last DX array elem, if missing
if( nAryLen != nStrLen )
{
- if( nAryLen+1 == nStrLen )
+ if (nAryLen+1 == nStrLen && nIndex >= 0)
{
std::unique_ptr<long[]> pTmpAry(new long[nStrLen]);