diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-20 16:03:24 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-08-05 14:28:52 +0200 |
commit | 81d247ddd61e061ff495c289ece376741324afc9 (patch) | |
tree | c68579a6f3008d866fcfb7f364893103f32f2873 | |
parent | ofz#10395 Null-dereference (diff) | |
download | core-81d247ddd61e061ff495c289ece376741324afc9.tar.gz core-81d247ddd61e061ff495c289ece376741324afc9.zip |
ofz#10523 guard aginst 0 pF->nLCode
Change-Id: I8ef476e06f54ddd57be907488a8a65314abda3ee
Reviewed-on: https://gerrit.libreoffice.org/60827
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
(cherry picked from commit b8525055c6734baa36c1da0aaf33654a865e2021)
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index b8828a15d67c..481a07b4114a 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -102,7 +102,7 @@ eF_ResT SwWW8ImplReader::Read_F_FormTextBox( WW8FieldDesc* pF, OUString& rStr ) { WW8FormulaEditBox aFormula(*this); - if (rStr[pF->nLCode-1]==0x01) { + if (pF->nLCode && rStr[pF->nLCode-1]==0x01) { ImportFormulaControl(aFormula,pF->nSCode+pF->nLCode-1, WW8_CT_EDIT); } |