Re: Potential grep bug?

2020-07-11 Thread Jordan Geoghegan
Hi Demi, On 2020-07-10 22:42, Demi M. Obenour wrote: On 2020-06-23 22:29, Jordan Geoghegan wrote: Hello, I was working on a couple POSIX regular expressions to search for and validate IPv4 and IPv6 addresses with optional CIDR blocks, and encountered some strange behaviour from the base

Re: Potential grep bug?

2020-07-10 Thread Demi M. Obenour
On 2020-06-23 22:29, Jordan Geoghegan wrote: > Hello, > > I was working on a couple POSIX regular expressions to search for and > validate IPv4 and IPv6 addresses with optional CIDR blocks, and encountered > some strange behaviour from the base system grep. > > I wanted to validate my regex

Re: Potential grep bug?

2020-06-24 Thread Philip Guenther
Nope. This is a grep of a single file, so procfile() must be overflowing and this only 'fixes' it by relying on signed overflow, which is undefined behavior, being handled in a particular way by the compiler. So, luck (which fails when the compiler decides to hate you). There are more places

Re: Potential grep bug?

2020-06-24 Thread Martijn van Duren
This seems to fix the issue for me. OK? martijn@ On Tue, 2020-06-23 at 19:29 -0700, Jordan Geoghegan wrote: > Hello, > > I was working on a couple POSIX regular expressions to search for and > validate IPv4 and IPv6 addresses with optional CIDR blocks, and > encountered some strange

Potential grep bug?

2020-06-23 Thread Jordan Geoghegan
Hello, I was working on a couple POSIX regular expressions to search for and validate IPv4 and IPv6 addresses with optional CIDR blocks, and encountered some strange behaviour from the base system grep. I wanted to validate my regex against a list of every valid IPv4 address, so I generated