HomeFreeBSD

kdump: use VIS_NOLOCALE when printing output

Description

kdump: use VIS_NOLOCALE when printing output

Attempting to parse the output as UTF-8 exposed an out-of-bounds read
in vis(3) (see https://reviews.freebsd.org/D30771). However, I don't
think it makes much sense to decode this output at all. Additionally,
passing one byte at a time will almost certainly result in incorrect
output for multi-byte characters.

Reviewed By: brooks
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D30772

(cherry picked from commit 1a3a57d74590bb44e96629aec35897b475bd69fa)

Details

Provenance
arichardsonAuthored on Jun 16 2021, 3:28 PM
Reviewer
brooks
Differential Revision
D30772: kdump: use VIS_NOLOCALE when printing output
Parents
rGc89f104c12e1: vis(3): avoid out-of-bounds stack buffer reads
Branches
Unknown
Tags
Unknown