]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r363435:
authorBrooks Davis <brooks@FreeBSD.org>
Wed, 29 Jul 2020 20:30:15 +0000 (20:30 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Wed, 29 Jul 2020 20:30:15 +0000 (20:30 +0000)
commit04736bf05bdbfbea7670d96ade69efbde3cb48c0
treeba54a03584c98cb4d1fe7a7d28b9aaac02f27e5a
parent59e0a2b84ae270c00ca27b141615e994977a293a
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
usr.sbin/mountd/mountd.c