]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vis(3): avoid out-of-bounds stack buffer reads
authorAlex Richardson <arichardson@FreeBSD.org>
Wed, 16 Jun 2021 15:27:13 +0000 (16:27 +0100)
committerAlex Richardson <arichardson@FreeBSD.org>
Wed, 16 Jun 2021 15:27:13 +0000 (16:27 +0100)
commit1a2f06d0f2905c9a18340b377cbbe772f2ca6844
treede52227a1ff5ebaa95692c636fd2b0ff1fc4bf21
parentbc6a2267fffeafd3946637607a74cfd639398f9d
vis(3): avoid out-of-bounds stack buffer reads

I found this while running kdump(1) on a CheriBSD system due to a
capability length violation when printing the /etc/libmap.conf read()
system call: it crashed immediately after printing the first line.

Found by: CHERI
Reviewed By: jhb
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D30771
contrib/libc-vis/vis.c