diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-24 09:37:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-24 09:37:32 +0100 |
commit | 8657e3795d2e0ef0653835e2d56c53512dd43aea (patch) | |
tree | 72d42f8ced3699f45b055beecbed6f6ed964612a | |
parent | 11e73a0880f64c99aec5059ff6122b831bc1de74 (diff) |
dismiss bad seek offsets early
Change-Id: Ia88bc1833d362547f45e073028203a4de581f3e2
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index 49a6765c48be..313dd7833858 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -7533,7 +7533,8 @@ SEPr::SEPr() : bool checkSeek(SvStream &rSt, sal_uInt32 nOffset) { - return (rSt.Seek(nOffset) == static_cast<sal_Size>(nOffset)); + return (nOffset != SAL_MAX_UINT32 && + rSt.Seek(nOffset) == static_cast<sal_Size>(nOffset)); } bool checkRead(SvStream &rSt, void *pDest, sal_uInt32 nLength) |