diff options
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 01041ef4a02c..bee3a698c326 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -6005,7 +6005,7 @@ WW8Fib::WW8Fib(SvStream& rSt, sal_uInt8 nWantedVersion, sal_uInt32 nOffset): // Read cswNew to find out if nFib should be ignored. sal_uInt32 nPos = rSt.Tell(); rSt.SeekRel(m_cfclcb * 8); - if (rSt.good()) + if (rSt.good() && rSt.remainingSize() >= 2) { rSt.ReadUInt16(m_cswNew); } |