[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - vcl/source

Caolán McNamara caolanm at redhat.com
Wed Feb 1 12:22:40 UTC 2017


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

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

    ofz#502 negative index
    
    Change-Id: I2eb3da9d378cd8fdace5ccd644f501f5119f6698
    Reviewed-on: https://gerrit.libreoffice.org/33741
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/vcl/source/gdi/svmconverter.cxx b/vcl/source/gdi/svmconverter.cxx
index 81e04b9..12dec2d 100644
--- a/vcl/source/gdi/svmconverter.cxx
+++ b/vcl/source/gdi/svmconverter.cxx
@@ -940,7 +940,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