boussaffawalid / muparserx

Automatically exported from code.google.com/p/muparserx
Other
0 stars 0 forks source link

expression containing two sum functions, where the sum functions have a different number of arguments crashes muParserX #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following c++ code illustrates the problem

ParserX p;
p.SetExpr(_T("sum(1,2)/sum(3,4)")); // evaluates ok
p.SetExpr(_T("sum(1,2)/sum(3,4,5)")); // crashes muParser on evaluation
Value result = p.Eval();
console() << result << "\n";

What is the expected output? What do you see instead?
Instead of evaluating to (in this example) 0.25, the evaluation crashes 
muParserX

What version of the product are you using? On what operating system?

2.0 version of muParserX
OS: Windows XP (Visual Studio 2005) and MacOS (QT 4.7.3)

Original issue reported on code.google.com by hans...@gmail.com on 13 Oct 2011 at 11:32

GoogleCodeExporter commented 9 years ago
Thanks for the report. The issue is Fixed in V2.0.1; currently only available 
only via SVN.

Best Regards,
Ingo

Original comment by ib...@gmx.info on 14 Oct 2011 at 8:28