summaryrefslogtreecommitdiff
path: root/src/parserfunc.c
AgeCommit message (Collapse)AuthorFilesLines
2025-09-21add missing byte in malloc for null terminatorHEADmastermbkma1-3/+3
2024-09-03Fix invalid memory access with invalid powersColomban Wendling1-5/+8
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-04-08Add modular exponentiation ability and add acccording testsmbkma1-3/+22
2020-04-08parserfunc: fix memory leakrbuj1-1/+7
2020-03-16parserfunc: fix crash when calculating nested powmbkma1-1/+12
2020-03-08Port to GNU MPFR/MPC Librarymbkma1-180/+147
For further information please visit: https://www.mpfr.org/ http://www.multiprecision.org/mpc
2019-07-13parserfunc: Return NULL on NOT operation overflowVictor Kareh1-1/+2
2012-11-24Update codebase.Steve Zesch1-0/+967