Re: cmp(1): stricter checking for skip1 and skip2

2018-03-02 Thread Theo Buehler
On Fri, Mar 02, 2018 at 12:27:05PM +0100, Klemens Nanni wrote: > On Thu, Mar 01, 2018 at 09:27:49PM -0600, Scott Cheloha wrote: > > Hey, > > > > This adds the more typical strtoll(3) checks we have elsewhere > > in the tree to cmp(1). Make sure we (a) got a number at all, > > (b) that it doesn't

Re: cmp(1): stricter checking for skip1 and skip2

2018-03-02 Thread Klemens Nanni
On Thu, Mar 01, 2018 at 09:27:49PM -0600, Scott Cheloha wrote: > Hey, > > This adds the more typical strtoll(3) checks we have elsewhere > in the tree to cmp(1). Make sure we (a) got a number at all, > (b) that it doesn't have any dangling non-digits, (c) that it's > non-negative, and (d) that

cmp(1): stricter checking for skip1 and skip2

2018-03-01 Thread Scott Cheloha
Hey, This adds the more typical strtoll(3) checks we have elsewhere in the tree to cmp(1). Make sure we (a) got a number at all, (b) that it doesn't have any dangling non-digits, (c) that it's non-negative, and (d) that it didn't overflow. The only thing in base using the skip extensions to