Files
Tejas Anil Nagmote bb682b4d7f Fix use-after-free in CreateDefaultDisplayReporter (#2240) (#2265)
CreateDefaultDisplayReporter() transfers ownership of the returned
reporter to the caller, but cached that owning pointer in a
function-local static. After the first RunSpecifiedBenchmarks() call
destroyed the reporter, a subsequent call returned the same, now
dangling pointer, causing a heap-use-after-free in
BenchmarkReporter::GetOutputStream().

Return std::unique_ptr<BenchmarkReporter> so the ownership transfer is
expressed in the type, and drop the static so every call returns a
fresh reporter.
2026-08-03 10:27:41 +01:00
..
2026-03-04 09:53:50 +00:00
2026-03-04 09:53:50 +00:00
2026-03-04 09:53:50 +00:00
2026-03-04 09:53:50 +00:00
2026-03-04 09:53:50 +00:00