HomeFreeBSD

Forbid basename(3) and dirname(3)

Description

Forbid basename(3) and dirname(3)

There are at least two interpretations of basename(3),
in addition to both functions being allowed to /both/ return a static
buffer (unsuitable in multi-threaded environments) /and/ raze the input
(which encourages overallocations, at best)

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12105

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on May 22 2021, 3:19 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 11 2021, 4:10 PM
Parents
rG64dfdaba372f: libzutil: import: filter out unsuitable files earlier
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGfeb04e66802e: Forbid basename(3) and dirname(3) (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Jun 11 2021, 4:10 PM