[Libreoffice-commits] core.git: vcl/source

Caolán McNamara caolanm at redhat.com
Thu Mar 9 21:52:15 UTC 2017


 vcl/source/gdi/svmconverter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8645f6d866427bfd82bce1bf96721533c113c077
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jan 31 09:23:09 2017 +0000

    ofz#502 negative index
    
    Change-Id: I2eb3da9d378cd8fdace5ccd644f501f5119f6698

diff --git a/vcl/source/gdi/svmconverter.cxx b/vcl/source/gdi/svmconverter.cxx
index efcc250..e4a00a1 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]);
 


More information about the Libreoffice-commits mailing list