[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - 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 fe2260df51f543292bd5db54aab7db5d76a3fbbe
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/33740
    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 f504f63..73c62b0 100644
--- a/vcl/source/gdi/svmconverter.cxx
+++ b/vcl/source/gdi/svmconverter.cxx
@@ -941,7 +941,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