HomeFreeBSD

vfs: Add an assertion around name length limits

Description

vfs: Add an assertion around name length limits

Some filesystems assume that they can copy a name component, with length
bounded by NAME_MAX, into a dirent buffer of size MAXNAMLEN. These
constants have the same value; add a compile-time assertion to that
effect.

Reported by: Alexey Kulaev <alex.qart@gmail.com>
Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29431

Details

Provenance
markjAuthored on Mar 27 2021, 5:42 PM
Reviewer
kib
Differential Revision
D29431: vfs: Add some assertions around various name length limits
Parents
rG90d2f7c413f9: release: amd64: Fix ISO/USB hybrid image
Branches
Unknown
Tags
Unknown