summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-05-07 12:21:47 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2019-05-07 16:26:47 +0200
commit34d1280271b74e1764bd4d1e34cb53b2b0c0dd62 (patch)
tree086c856d211a722a90089f8b029c160192724bfe /vcl
parent0e2cda8906f501bb8a90f1f44335c7ff2a5edb4f (diff)
tdf#125153 vcl: fix ImplReadDIBFileHeader()
Apparently the offset needs to be checked against the total size of the stream, not against the remaining size. (regression from b67d9a5db61de3cef2dac072c55bf1dac9a2dc4c) Change-Id: I7e714b7c4ce34b5285cfbf9ca81133ecbbb16fc1 Reviewed-on: https://gerrit.libreoffice.org/71903 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/dibtools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index fabd86045a33..57de6fb08ab0 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -1065,7 +1065,7 @@ bool ImplReadDIBFileHeader( SvStream& rIStm, sal_uLong& rOffset )
{
bool bRet = false;
- const sal_uInt64 nStreamLength = rIStm.remainingSize();
+ const sal_uInt64 nStreamLength = rIStm.TellEnd();
sal_uInt16 nTmp16 = 0;
rIStm.ReadUInt16( nTmp16 );