diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-21 18:43:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-21 21:33:25 +0200 |
commit | 2e64d2c0447f4ac73914cb1308cff1aca0d4bdc2 (patch) | |
tree | 9a459e3268da0774e0cf12c4f5731021c8dd25e0 /vcl | |
parent | e9e7ee19ba8cb5666442e765f3a1e9e497a22e0a (diff) |
check bmp seek
Change-Id: Ie5e40d7817c4bac2a645822863e62467739801e8
Reviewed-on: https://gerrit.libreoffice.org/43672
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/dibtools.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) |