diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-14 20:40:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-14 20:41:32 +0000 |
commit | e68faf7d42179c4f9b90b514f5b3bfcb7f1e9cb0 (patch) | |
tree | a428f9053de8e406c7ca91453aaa65d66b86287f /lotuswordpro | |
parent | 1565c6bed3289f8f14b311b17ffb2e99d155bddb (diff) |
ofz#866 crash in LwpFormulaInfo::ReadArguments
Change-Id: Id301c21c8a4a0556b6326b621171aa62bd939d8d
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/qa/cppunit/data/fail/stack-1.lwp | bin | 0 -> 6074 bytes | |||
-rw-r--r-- | lotuswordpro/source/filter/lwptblformula.cxx | 4 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/qa/cppunit/data/fail/stack-1.lwp b/lotuswordpro/qa/cppunit/data/fail/stack-1.lwp Binary files differnew file mode 100644 index 000000000000..60eb8e393e99 --- /dev/null +++ b/lotuswordpro/qa/cppunit/data/fail/stack-1.lwp diff --git a/lotuswordpro/source/filter/lwptblformula.cxx b/lotuswordpro/source/filter/lwptblformula.cxx index 70eeebb1cf3f..f9266770ca86 100644 --- a/lotuswordpro/source/filter/lwptblformula.cxx +++ b/lotuswordpro/source/filter/lwptblformula.cxx @@ -297,9 +297,9 @@ void LwpFormulaInfo::ReadArguments(LwpFormulaFunc& aFunc) break; } - if (bArgument) + if (bArgument && !m_aStack.empty()) { - aFunc.AddArg( m_aStack.back() ); + aFunc.AddArg(m_aStack.back()); m_aStack.pop_back(); } } |