[clang] Fix Unintialised char *CommentLexer resulting in potential UB. (PR #210067)
Hardik Kumar via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 16 07:58:08 PDT 2026
================
@@ -240,7 +240,7 @@ class Lexer {
/// One past end pointer for the current comment. For BCPL comments points
/// to newline or BufferEnd, for C comments points to star in '*/'.
- const char *CommentEnd;
+ const char *CommentEnd{nullptr};
----------------
hardikxk wrote:
Got it thanks for the suggestion!
https://github.com/llvm/llvm-project/pull/210067
More information about the cfe-commits
mailing list