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.

(cherry picked from commit 5c053aa3c5e907bdd1ac466ce9b58611781c2c20)

Details

Provenance
kevansAuthored on Aug 23 2022, 2:05 AM
Parents
rG360741a63897: tcp_bbr(4): Fix a typo in a source code comment
Branches
Unknown
Tags
Unknown