diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-05-09 08:35:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-05-09 08:36:10 +0100 |
commit | 7ad595c808fbe3d25dae7215e355ee14f03d2fd8 (patch) | |
tree | b67487a25ada105ba6e00dcdd44a80e21a255937 /sw/source | |
parent | 899ffa4c4c66702e2a65f4065cbb7970d0e9c0e2 (diff) |
ofz avoid oom
Change-Id: I84f0eedb8081a3d22f6e02bac0b21456c7d1553a
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |