[Libreoffice-commits] core.git: vcl/source
Michael Stahl (via logerrit)
logerrit at kemper.freedesktop.org
Tue May 7 14:27:30 UTC 2019
vcl/source/gdi/dibtools.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 34d1280271b74e1764bd4d1e34cb53b2b0c0dd62
Author: Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Tue May 7 12:21:47 2019 +0200
Commit: Michael Stahl <Michael.Stahl at cib.de>
CommitDate: Tue May 7 16:26:47 2019 +0200
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 at cib.de>
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 );
More information about the Libreoffice-commits
mailing list