sw/source/filter/ww8/ww8scan.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7ad595c808fbe3d25dae7215e355ee14f03d2fd8 Author: Caolán McNamara <caol...@redhat.com> Date: Tue May 9 08:35:18 2017 +0100 ofz avoid oom Change-Id: I84f0eedb8081a3d22f6e02bac0b21456c7d1553a diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index df869cbc724b..24487d4bb8b5 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -6352,7 +6352,7 @@ void MSOPropertyBagStore::Read(SvStream& rStream) { sal_uInt32 cFactoidType(0); rStream.ReadUInt32(cFactoidType); - for (sal_uInt32 i = 0; i < cFactoidType; ++i) + for (sal_uInt32 i = 0; i < cFactoidType && rStream.good(); ++i) { MSOFactoidType aFactoidType; aFactoidType.Read(rStream);
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits