Re: math/ministat segmentation fault

2022-11-19 Thread Jeremie Courreges-Anglas
On Sat, Nov 12 2022, Jeremie Courreges-Anglas wrote: > On Thu, Nov 10 2022, Mikhail wrote: >> On Thu, Nov 10, 2022 at 06:21:52PM +0100, Jeremie Courreges-Anglas wrote: >>> On Thu, Nov 10 2022, Mikhail wrote: >>> > On Thu, Nov 10, 2022 at 09:35:18AM +0100, Jeremie Courreges-Anglas wrote: >>> >> O

Re: math/ministat segmentation fault

2022-11-12 Thread Jeremie Courreges-Anglas
On Thu, Nov 10 2022, Mikhail wrote: > On Thu, Nov 10, 2022 at 06:21:52PM +0100, Jeremie Courreges-Anglas wrote: >> On Thu, Nov 10 2022, Mikhail wrote: >> > On Thu, Nov 10, 2022 at 09:35:18AM +0100, Jeremie Courreges-Anglas wrote: >> >> On Thu, Nov 10 2022, Ross L Richardson wrote: >> >> > Report

Re: math/ministat segmentation fault

2022-11-10 Thread Mikhail
On Thu, Nov 10, 2022 at 06:21:52PM +0100, Jeremie Courreges-Anglas wrote: > On Thu, Nov 10 2022, Mikhail wrote: > > On Thu, Nov 10, 2022 at 09:35:18AM +0100, Jeremie Courreges-Anglas wrote: > >> On Thu, Nov 10 2022, Ross L Richardson wrote: > >> > Reported upstream (by me) as > >> > https://bugs

Re: math/ministat segmentation fault

2022-11-10 Thread Jeremie Courreges-Anglas
On Thu, Nov 10 2022, Mikhail wrote: > On Thu, Nov 10, 2022 at 09:35:18AM +0100, Jeremie Courreges-Anglas wrote: >> On Thu, Nov 10 2022, Ross L Richardson wrote: >> > Reported upstream (by me) as >> >https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267684 >> > >> > math/ministat has a silly b

Re: math/ministat segmentation fault

2022-11-10 Thread Omar Polo
On 2022/11/10 18:53:58 +0300, Mikhail wrote: > FreeBSD version doesn't crash: > > [freefall ~] ministat - - > ministat: Cannot open -: No error: 0 > > It's because on line 652 (see code snippet above) we check if array > element is set to NULL, and before that we either use 0 index for stdin > o

Re: math/ministat segmentation fault

2022-11-10 Thread Mikhail
On Thu, Nov 10, 2022 at 09:35:18AM +0100, Jeremie Courreges-Anglas wrote: > On Thu, Nov 10 2022, Ross L Richardson wrote: > > Reported upstream (by me) as > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267684 > > > > math/ministat has a silly bug in which the code assumes that "-" will

Re: math/ministat segmentation fault

2022-11-10 Thread Ross L Richardson
On Thu, Nov 10, 2022 at 09:35:18AM +0100, Jeremie Courreges-Anglas wrote: > On Thu, Nov 10 2022, Ross L Richardson wrote: > > Reported upstream (by me) as > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267684 >[...] > > Indeed. > > > That way, ministat will error out complaining that,

Re: math/ministat segmentation fault

2022-11-10 Thread Jeremie Courreges-Anglas
On Thu, Nov 10 2022, Ross L Richardson wrote: > Reported upstream (by me) as > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267684 > > math/ministat has a silly bug in which the code assumes that "-" will be > specified no more than once at invocation: > > $ jot 3 | ministat - - > Segm

math/ministat segmentation fault

2022-11-09 Thread Ross L Richardson
Reported upstream (by me) as https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267684 math/ministat has a silly bug in which the code assumes that "-" will be specified no more than once at invocation: $ jot 3 | ministat - - Segmentation fault (core dumped) The problem is in the port