diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2019-05-07 12:21:47 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-05-07 16:26:47 +0200 |
commit | 34d1280271b74e1764bd4d1e34cb53b2b0c0dd62 (patch) | |
tree | 086c856d211a722a90089f8b029c160192724bfe /vcl | |
parent | 0e2cda8906f501bb8a90f1f44335c7ff2a5edb4f (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.cxx | 2 |
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 ); |