diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-12-08 15:34:03 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-12-08 15:51:47 +0100 |
commit | e0caeaa5be754c35742cec7ddf70c9021f66f2bf (patch) | |
tree | a9b260a87000d37df8d50773df1379cd13b0acd7 | |
parent | 0c3155f601b74eb369f47dc713d9e119e798da85 (diff) |
WW8SmartTagData::Read: check seek result
Change-Id: I0492c5b3018f59e4b783bb33f8b75ce67847dcf0
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index 0f2df7ca2624..c39afcb9c649 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -6363,7 +6363,8 @@ void MSOPropertyBag::Read(SvStream& rStream) void WW8SmartTagData::Read(SvStream& rStream, WW8_FC fcFactoidData, sal_uInt32 lcbFactoidData) { sal_uInt64 nOldPosition = rStream.Tell(); - rStream.Seek(fcFactoidData); + if (!checkSeek(rStream, fcFactoidData)) + return; m_aPropBagStore.Read(rStream); while (rStream.Tell() < fcFactoidData + lcbFactoidData) |