diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2026-09-04 12:46:29 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-09-04 12:46:44 +0000 |
| commit | e1d903bbfaf91060c43209b35b78a9992fbffe5e (patch) | |
| tree | 667125740732e8561e09f6eee5711957756fff48 /source/Interpreter/OptionGroupPlatform.cpp | |
| parent | 2350f75acb0da0271ccff1fb22381f7e8c5948f8 (diff) | |
bufinit() inserts newly initialized bufs into the QUEUE_EMPTY queue, at
which point they haven't yet been assigned a domain. Thus, bufdomain()
returns &bdomain[-1], which trips the array-bounds sanitizer.
This is harmless since we don't use the result in that case, but let's
avoid the invalid access to begin with. This is sufficient to let an
amd64 kernel boot to a login prompt with -fsanitize=array-bounds
configured.
Reported by: Andrew Griffiths <andrew@calif.io>
Reviewed by: rlibby, kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D59381
Diffstat (limited to 'source/Interpreter/OptionGroupPlatform.cpp')
0 files changed, 0 insertions, 0 deletions
