summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/filter/ww8/ww8par4.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par4.cxx b/sw/source/filter/ww8/ww8par4.cxx
index ac6d9d4c4525..da6858904adc 100644
--- a/sw/source/filter/ww8/ww8par4.cxx
+++ b/sw/source/filter/ww8/ww8par4.cxx
@@ -477,8 +477,8 @@ void SwWW8ImplReader::Read_CRevisionMark(RedlineType_t eType,
const sal_uInt8* pSprmCDttmRMark;
if( nsRedlineType_t::REDLINE_FORMAT == eType )
{
- pSprmCIbstRMark = pData+1;
- pSprmCDttmRMark = pData+3;
+ pSprmCIbstRMark = nLen >= 3 ? pData+1 : nullptr;
+ pSprmCDttmRMark = nLen >= 7 ? pData+3 : nullptr;
}
else
{