vcl/source/gdi/dibtools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d2804a15a17f1561017892ec2d023649a8e1772d Author: David Tardon <dtar...@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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits