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

David Tardon dtardon at redhat.com
Mon Jan 25 05:16:22 PST 2016


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

New commits:
commit d2804a15a17f1561017892ec2d023649a8e1772d
Author: David Tardon <dtardon at redhat.com>
Date:   Mon Jan 25 14:13:14 2016 +0100

    also use the right stream for check
    
    Change-Id: I019956e80c310317314673c6444e38e6e78ec7f2

diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index e9c11ce..a788c52 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -851,7 +851,7 @@ bool ImplReadDIBBody( SvStream& rIStm, Bitmap& rBmp, Bitmap* pBmpAlpha, sal_uLon
         // (partially) check the image dimensions to avoid potential large bitmap allocation if the input is damaged
         if (aHeader.nCompression == ZCOMPRESS || aHeader.nCompression == COMPRESS_NONE)
         {
-            sal_uInt64 nMaxWidth = rIStm.remainingSize();
+            sal_uInt64 nMaxWidth = pIStm->remainingSize();
             if (aHeader.nHeight != 0)
                 nMaxWidth /= aHeader.nHeight;
             if (nMaxWidth < nAlignedWidth)


More information about the Libreoffice-commits mailing list