Closed nasailja closed 9 years ago
They seem pretty straightforward to fix. I'll probably also turn the assertions into an exception but i guess this would prevent you from finding more of the issues. The parser would then just throw an internal error. If you cant find any more I'll do that to be on the safe side.
I think throwing would be better than asserting in any case as then I could provide a better error message.
Fixed in V4.0.2; Main parsing engine does no longer use assertions. You should always get an exception now.
A couple more assertions remain from the batch I discovered with my first afl run, expressions
80>0?+:0
and80>0?-:0
lead toAssertion failed: (sidx>=0), function ParseFromRPN, file parser/mpParserBase.cpp, line 1103.
This is with muparserx that includes fixes for issues 55-58.