Hi Paul. > On 06/05/2012 03:35 PM, Paolo Bonzini wrote: > > What if the regex matches \0? > > I'm thinking to change the default behavior of grep, > so that \0 is treated as if it ended a line (like > newline) when reading binary files. This will be > more useful in practice, not least because it fixes > the denial-of-service problem. POSIX allows this.
Please remember that for gawk dfa.c needs to continue to be able to match '\0'. (There's an issue related to that which I need to discuss with Paolo, off list. Will try to get to it soon. :-) Thanks, Arnold
