HomeFreeBSD

MFC r363435:

Description

MFC r363435:

Avoid reading one byte before the path buffer.

This happens when there's only one component (e.g. "/foo"). This
(mostly-harmless) bug has been present since June 1990 when it was
commited to mountd.c SCCS version 5.9.

Note: the bug is on the second changed line, the first line is changed
for visual consistency.

Reviewed by: cem, emaste, mckusick, rmacklem
Reported by: CHERI
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D25759

Details

Provenance
brooksAuthored on
Reviewer
cem
Differential Revision
D25759: Avoid reading one byte before the path buffer.
Parents
rS363671: Remove the volatile qualifier from busy_lock.
Branches
Unknown
Tags
Unknown