summaryrefslogtreecommitdiff
path: root/src/parser.c
AgeCommit message (Collapse)AuthorFilesLines
2024-09-03Fix invalid memory access with invalid powersColomban Wendling1-9/+5
The ParseNode's value must be valid to pass to `free()`, as it's done unconditionally if the expression is invalid. However, for some functions a shortuct was taken avoiding duplicating memory. This was OK in case the expression is valid because the evaluation function would convert it and set the pointer back to NULL; but it's not OK if the expression is invalid as the evaluation doesn't happen and the pointer is not reset before being freed. Fixes #226.
2020-11-09Fix most conversion warnings.mbkma1-1/+1
2020-07-05fixes incorrect parenthesis handlingmbkma1-1/+0
reverts commit 731bdfe3591618759a44d9382b49952e781a01bd
2020-03-08Port to GNU MPFR/MPC Librarymbkma1-2/+5
For further information please visit: https://www.mpfr.org/ http://www.multiprecision.org/mpc
2020-01-12fixes precedence of functions i.e. the result of -ln(1) and add according testsmbkma1-0/+2
2012-11-24Update codebase.Steve Zesch1-0/+1228