docs: Correct three comments about null-terminated views (#8253)

Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
This commit is contained in:
Bart
2026-09-21 11:12:09 +00:00
committed by GitHub
parent f6b51f0b8b
commit 16f7b263fd
3 changed files with 8 additions and 7 deletions

View File

@@ -1032,8 +1032,9 @@ public:
// makePerfLog() copies the range of names it is given, so only the names have
// to outlive the PerfLog. Here the range does not: it is destroyed before the
// counters are read. Retaining it instead is a use-after-free that a
// sanitizer build reports and this test would otherwise pass through.
// counters are read. Retaining it instead is a use-after-free, which a
// sanitizer build reports directly and which otherwise surfaces as a failed
// assertion or a Debug-mode heap-corruption abort, not a silent pass.
void
testCallerRangeNeedNotOutlive()
{