[all-commits] [llvm/llvm-project] 28c127: [clang-tidy] Add bugprone-suspicious-stringview-da...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Tue Mar 19 12:15:30 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28c1279db3541bc7b246fd9da0da3da4e09f0eed
      https://github.com/llvm/llvm-project/commit/28c1279db3541bc7b246fd9da0da3da4e09f0eed
  Author: Piotr Zegar <piotr.zegar at nokia.com>
  Date:   2024-03-19 (Tue, 19 Mar 2024)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
    M clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
    A clang-tools-extra/clang-tidy/bugprone/SuspiciousStringviewDataUsageCheck.cpp
    A clang-tools-extra/clang-tidy/bugprone/SuspiciousStringviewDataUsageCheck.h
    M clang-tools-extra/docs/ReleaseNotes.rst
    A clang-tools-extra/docs/clang-tidy/checks/bugprone/suspicious-stringview-data-usage.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    M clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/string
    A clang-tools-extra/test/clang-tidy/checkers/bugprone/suspicious-stringview-data-usage.cpp

  Log Message:
  -----------
  [clang-tidy] Add bugprone-suspicious-stringview-data-usage check (#83716)

This check identifies suspicious usages of std::string_view::data() that
could lead to reading out-of-bounds data due to inadequate or incorrect
string null termination.

Closes #80854



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