diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-18 12:51:07 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-26 08:23:51 +0200 |
commit | 27be4472daf2e7e247bd68e3fd2eb3b0ea69d82e (patch) | |
tree | 54ca0a0e7c0f4c6571c2c8eba151b6b5bd7697c7 /sw | |
parent | 2ab0e004f1b08ef9b4ea04e15c6b99a3e540e80a (diff) |
ofz#6999 check available data len
Change-Id: I89a7913d35706ee5797beee654ef99be088431b8
Reviewed-on: https://gerrit.libreoffice.org/51498
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit d3a0ba91dbe0c517ed70fcb9d109b4d63d828fb4)
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par4.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par4.cxx b/sw/source/filter/ww8/ww8par4.cxx index 7ee6fac81825..8a6bcee8c420 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 { |