Re: [fossil-users] TH1: expr {42.0/0}

2014-01-03 Thread Sergei Gavrikov
On Sat, 28 Dec 2013, Joe Mistachkin wrote: Sergei Gavrikov wrote: I found that TH1 does not catch Divide by 0 under certain conditions (if numerator or denominator (or both) are floating-point numbers) and quite hangs Fossil: Thanks for the report. Fixed here:

Re: [fossil-users] TH1: expr {42.0/0}

2014-01-03 Thread Joe Mistachkin
Sergei Gavrikov wrote: Sorry for delayed answer. Thank you for this fix. One thing that I found today, there are a few early returns in exprEval() which can cause memory leaks (nLeft, nRight stay allocated after return). I would say 'goto' is the simplest workaround to fix those lines, but,

Re: [fossil-users] TH1: expr {42.0/0}

2014-01-03 Thread Sergei Gavrikov
On Fri, 3 Jan 2014, Joe Mistachkin wrote: Sergei Gavrikov wrote: Sorry for delayed answer. Thank you for this fix. One thing that I found today, there are a few early returns in exprEval() which can cause memory leaks (nLeft, nRight stay allocated after return). I would say 'goto' is

Re: [fossil-users] TH1: expr {42.0/0}

2013-12-28 Thread Joe Mistachkin
Sergei Gavrikov wrote: I found that TH1 does not catch Divide by 0 under certain conditions (if numerator or denominator (or both) are floating-point numbers) and quite hangs Fossil: Thanks for the report. Fixed here: https://www.fossil-scm.org/index.html/info/479b3de1d2 --