[all-commits] [llvm/llvm-project] 21be2f: [clang-tidy][NFC] Fix buffer overflow in modernize...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Thu Feb 29 12:54:35 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21be2fbd17f9ff6f3f04e0ababc91c9cdd5aed85
      https://github.com/llvm/llvm-project/commit/21be2fbd17f9ff6f3f04e0ababc91c9cdd5aed85
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2024-02-29 (Thu, 29 Feb 2024)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/UseDesignatedInitializersCheck.cpp

  Log Message:
  -----------
  [clang-tidy][NFC] Fix buffer overflow in modernize-use-designated-initializers

Instance of DenseMap were copied into local variable,
and as a result reference to string stored in that local
variable were returned from function. At the end fix-it
were applied with already destroyed string causing some
non utf-8 characters to be printed.

Related to #80541



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list