sfx2/source/doc/oleprops.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 6565de2c88aeeb2a8130fa65ae55b15cc7b8b2ca Author: Caolán McNamara <caol...@redhat.com> Date: Tue Sep 26 13:09:44 2017 +0100 fail earlier on bad offsets Change-Id: Ifea7653435743bb652afa68d734ed553b04606d7 Reviewed-on: https://gerrit.libreoffice.org/42804 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> 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;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits