Project

General

Profile

Actions

Bug #55

open

Bug #247: Version 1.7 bugfixes

THaFormula containing parameters may crash

Added by Ole Hansen almost 7 years ago. Updated about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
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
Actions #1

Updated by Ole Hansen almost 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.

Actions #2

Updated by Ole Hansen almost 7 years ago

  • Start date deleted (11/22/2014)
  • Parent task set to #80
Actions #3

Updated by Ole Hansen about 6 years ago

  • Parent task changed from #80 to #247
Actions #4

Updated by Ole Hansen about 6 years ago

  • Target version changed from 1.6 to 1.7
Actions

Also available in: Atom PDF