aboutsummaryrefslogtreecommitdiff
path: root/docs/JSONCompilationDatabase.html
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-09-04 12:46:29 +0000
committerMark Johnston <markj@FreeBSD.org>2026-09-04 12:46:44 +0000
commite1d903bbfaf91060c43209b35b78a9992fbffe5e (patch)
tree667125740732e8561e09f6eee5711957756fff48 /docs/JSONCompilationDatabase.html
parent2350f75acb0da0271ccff1fb22381f7e8c5948f8 (diff)
buf: Avoid calling bufdomain() on newly initialized bufsHEADmain
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 'docs/JSONCompilationDatabase.html')
0 files changed, 0 insertions, 0 deletions