diff options
author | David Tardon <dtardon@redhat.com> | 2016-01-25 14:13:14 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-01-25 14:15:50 +0100 |
commit | d2804a15a17f1561017892ec2d023649a8e1772d (patch) | |
tree | ee0f7c0fa1e9b24b4e5ca1f60f181be96d2675b6 /vcl/source/gdi/dibtools.cxx | |
parent | 6edecb49c0b2e16df58a79b4b93c24567bfaafac (diff) |
also use the right stream for check
Change-Id: I019956e80c310317314673c6444e38e6e78ec7f2
Diffstat (limited to 'vcl/source/gdi/dibtools.cxx')
-rw-r--r-- | vcl/source/gdi/dibtools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx index e9c11ce558bb..a788c522cc65 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) |