diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-19 12:47:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-19 14:50:17 +0200 |
commit | 7e8c38b69742ff037a5e239bf0f02665f053ea53 (patch) | |
tree | 311fe81b7ee8b38fd56a06076da2f7b6ff8151e9 /include | |
parent | f02cee05a815f91d69626d18461dc384af089dfa (diff) |
ofz#2538 avoid oom
Change-Id: Ief86805a1d8c010826351d7b701678ee2945770d
Reviewed-on: https://gerrit.libreoffice.org/42466
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/filter/msfilter/dffrecordheader.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/filter/msfilter/dffrecordheader.hxx b/include/filter/msfilter/dffrecordheader.hxx index 3ad5c4837055..acd0d2539889 100644 --- a/include/filter/msfilter/dffrecordheader.hxx +++ b/include/filter/msfilter/dffrecordheader.hxx @@ -45,16 +45,16 @@ public: bool SeekToEndOfRecord(SvStream& rIn) const { sal_uInt64 const nPos = nFilePos + DFF_COMMON_RECORD_HEADER_SIZE + nRecLen; - return nPos == rIn.Seek(nPos); + return checkSeek(rIn, nPos); } bool SeekToContent(SvStream& rIn) const { sal_uInt64 const nPos = nFilePos + DFF_COMMON_RECORD_HEADER_SIZE; - return nPos == rIn.Seek(nPos); + return checkSeek(rIn, nPos); } bool SeekToBegOfRecord(SvStream& rIn) const { - return nFilePos == rIn.Seek(nFilePos); + return checkSeek(rIn, nFilePos); } MSFILTER_DLLPUBLIC friend bool ReadDffRecordHeader(SvStream& rIn, DffRecordHeader& rRec); |