mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-28 07:48:01 +00:00
docs: Correct three comments about null-terminated views (#8253)
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user