[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Sat Oct 21 19:33:50 UTC 2017
vcl/source/gdi/dibtools.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 2e64d2c0447f4ac73914cb1308cff1aca0d4bdc2
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Oct 21 18:43:47 2017 +0100
check bmp seek
Change-Id: Ie5e40d7817c4bac2a645822863e62467739801e8
Reviewed-on: https://gerrit.libreoffice.org/43672
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index 82cac86ae0f4..59c47beebd83 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -246,7 +246,8 @@ bool ImplReadDIBInfoHeader(SvStream& rIStm, DIBV5Header& rHeader, bool& bTopDown
readUInt32( rHeader.nV5Reserved );
// seek to EndPos
- rIStm.Seek(aStartPos + rHeader.nSize);
+ if (!checkSeek(rIStm, aStartPos + rHeader.nSize))
+ return false;
}
if ( rHeader.nHeight < 0 )
More information about the Libreoffice-commits
mailing list