diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-08 11:52:14 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-02-08 11:56:05 +0100 |
commit | 6efd5c1e497360147da639d615ac9dba1de6014a (patch) | |
tree | 8124d3e722b6837fae257dd209929b631cf04b26 /vcl/source/gdi | |
parent | 9d277f1a4a988aca2c7a062938e2396e0f214111 (diff) |
ofz#502 negative index
Change-Id: I4dd7bbc0b40e7ec648a5b5f4c45e13e8d8b330a5
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/cvtsvm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/cvtsvm.cxx b/vcl/source/gdi/cvtsvm.cxx index 75e63c74a151..0119def01345 100644 --- a/vcl/source/gdi/cvtsvm.cxx +++ b/vcl/source/gdi/cvtsvm.cxx @@ -939,7 +939,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]); |