HomeFreeBSD

split: switch to getline() for line/pattern matching

Description

split: switch to getline() for line/pattern matching

Get rid of split's home-grown logic for growing the buffer; arbitrarily
breaking at LONG_MAX bytes instead of 65536 bytes gives us much more
wiggle room. Additionally, we'll actually fail out entirely if we can't
fit a line, which makes noticing this class of problem much easier.

Reviewed by: bapt, emaste, pauamma
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D36323

Details

Provenance
kevansAuthored on Aug 23 2022, 2:05 AM
Reviewer
bapt
Differential Revision
D36323: split: switch to getline() for line/pattern matching
Parents
rG8ba2beacfd7c: netmap(4): Fix a typo in a source code comment
Branches
Unknown
Tags
Unknown