bylexus / fparse

A JavaScript Formula Parser
http://fparser.alexi.ch/
MIT License
90 stars 15 forks source link

prevent stack overflow #50

Closed pilosof closed 7 months ago

pilosof commented 1 year ago

I think it will be wise to prevent stack overflow and don't allow the execution of evaluate from inside the formula (formulas can be user generated)

fObj = new Formula('evaluate()');
bylexus commented 1 year ago

good point, I will consider preventing this.