[all-commits] [llvm/llvm-project] 141ad3: [clang-format] Fix uninitialized memory problem

eywdck2l via All-commits all-commits at lists.llvm.org
Sun Jun 26 15:25:32 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 141ad3ba05711cc8396a34fce6b26648d216eb8e
  Author: sstwcw <f0gukp2nk at protonmail.com>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M clang/lib/Format/FormatTokenLexer.cpp

  Log Message:
  [clang-format] Fix uninitialized memory problem

The setLength function checks for the token kind which could be
uninitialized in the previous version.

The problem was introduced in 2e32ff106e.

Reviewed By: MyDeveloperDay, owenpan

Differential Revision: https://reviews.llvm.org/D128607

More information about the All-commits mailing list