beltoforion / muparserx

A C++ Library for Parsing Expressions with Strings, Complex Numbers, Vectors, Matrices and more.
http://beltoforion.de/en/muparserx
BSD 2-Clause "Simplified" License
135 stars 60 forks source link

Segfaults with latest git #61

Closed nasailja closed 9 years ago

nasailja commented 9 years ago

These expressions segfault the parser in #55 with mupx from latest git: {?0:7m}-{7,-00007m}-{7M}, {{{?2},7:2}*7m}, both in parser/mpParserBase.cpp:1158: if (pStack[sidx--]->GetBool()==false)

beltoforion commented 9 years ago

Fixed in V4.0.2; Main parsing engine does no longer use assertions. You should always get an exception now.