diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-26 13:09:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-26 21:27:00 +0200 |
commit | 6565de2c88aeeb2a8130fa65ae55b15cc7b8b2ca (patch) | |
tree | 92110ebfb918ad894bf929612cc59b579dd86d9b /sfx2 | |
parent | 8db706e3239cda41f8a5e956a48eed47d6bd200e (diff) |
fail earlier on bad offsets
Change-Id: Ifea7653435743bb652afa68d734ed553b04606d7
Reviewed-on: https://gerrit.libreoffice.org/42804
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/oleprops.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx index 1505f766b4df..8391dede0a4b 100644 --- a/sfx2/source/doc/oleprops.cxx +++ b/sfx2/source/doc/oleprops.cxx @@ -1186,7 +1186,8 @@ void SfxOlePropertySet::ImplLoad( SvStream& rStrm ) break; nSectPosPos = rStrm.Tell(); // read section - rStrm.Seek(nSectPos); + if (!checkSeek(rStrm, nSectPos)) + break; LoadObject(rStrm, AddSection(aSectGuid)); if (!rStrm.good()) break; |