[all-commits] [llvm/llvm-project] ffc9b8: [clang-format] Fix use after free in FormatTokenSo...
Benjamin Kramer via All-commits
all-commits at lists.llvm.org
Tue Jan 31 12:04:42 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ffc9b80c35bc43ff59c39f35ceab7a73f964f4ab
https://github.com/llvm/llvm-project/commit/ffc9b80c35bc43ff59c39f35ceab7a73f964f4ab
Author: Benjamin Kramer <benny.kra at googlemail.com>
Date: 2023-01-31 (Tue, 31 Jan 2023)
Changed paths:
M clang/lib/Format/FormatTokenSource.h
M clang/unittests/Format/FormatTokenSourceTest.cpp
Log Message:
-----------
[clang-format] Fix use after free in FormatTokenSource test
Add a lifetime annotation to IndexedTokenSource so we get a warning for
this pattern.
More information about the All-commits
mailing list