Actions
Bug #55
openBug #247: Version 1.7 bugfixes
THaFormula containing parameters may crash
Start date:
Due date:
% Done:
0%
Estimated time:
16.00 h
Responsible:
Description
THaFormulas containing parameter expressions, or special functions that expect parameters, may crash. Examples:
f1 = new THaFormula("f1","gaus"); f1->Eval() *** Break *** segmentation violation double x = 1; gHaVars->Define("x",x); f2 = new THaFormula("f2","[0]+x") f2->Eval() *** Break *** segmentation violation
Updated by Ole Hansen over 7 years ago
We already have a partial fix for this: Names of functions with parameters are blocked from being passed to TFormula. Instead, trying to create such a formula results in a syntax error now.
However, explicit parameters in a formula, e.g. "[0]", or parameterized functions from TFormulaPrimitive, e.g. "Pol1(0,0)", still cause a crash.
Updated by Ole Hansen over 7 years ago
- Start date deleted (
11/22/2014) - Parent task set to #80
Actions