HomeFreeBSD

MFC r316495: bsdgrep(1): Fix errors with invalid expressions

Description

MFC r316495: bsdgrep(1): Fix errors with invalid expressions

Invalid expressions with an ultimate compiled pattern length of 0 (e.g.,
"grep -E {") were not taken into account and caused a segfault while trying
to fill in the good suffix table.

Approved by: emaste (mentor, blanket MFC)

Details

Provenance
kevansAuthored on
Parents
rS322557: MFC r316492: bsdgrep(1): Rip out "xmalloc" bits
Branches
Unknown
Tags
Unknown