HomeFreeBSD

vis(3): avoid out-of-bounds stack buffer reads

Description

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

Details

Provenance
arichardsonAuthored on Jun 16 2021, 3:27 PM
Reviewer
jhb
Differential Revision
D30771: [UPSTREAM] vis(3) avoid out-of-bounds stack buffer reads
Parents
rGbc6a2267fffe: ipfw: Update the pfil mbuf pointer in ipfw_check_frame()
Branches
Unknown
Tags
Unknown