Kaydet (Commit) 595fb256 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Eike Rathke

crashtestig: infinite recurse in ooo32833-1.sxc

integralPhi is called with nan(0xfffff000001f6)
which recurses through rtl_math_erfc->rtl_math_erf->rtl_math_erfc
until we run out of stack

Change-Id: Iab8a22fb23686d22d151f2508dbeb44ab47a76b7
(cherry picked from commit d2a07cd3)
Reviewed-on: https://gerrit.libreoffice.org/19282Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst d8fbdc17
...@@ -1598,7 +1598,10 @@ void ScInterpreter::ScLogNormDist( int nMinParamCount ) //expanded, see #i100119 ...@@ -1598,7 +1598,10 @@ void ScInterpreter::ScLogNormDist( int nMinParamCount ) //expanded, see #i100119
void ScInterpreter::ScStdNormDist() void ScInterpreter::ScStdNormDist()
{ {
PushDouble(integralPhi(GetDouble())); double fVal = GetDouble();
if (!rtl::math::isNan(fVal))
fVal = integralPhi(fVal);
PushDouble(fVal);
} }
void ScInterpreter::ScStdNormDist_MS() void ScInterpreter::ScStdNormDist_MS()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment