[all-commits] [llvm/llvm-project] a54d81: [analyzer] CERT: POS34-C

Zuka Tsinadze via All-commits all-commits at lists.llvm.org
Wed Feb 19 09:13:50 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a54d81f597963b8768ce2b94a8ef570f9eaaac25
      https://github.com/llvm/llvm-project/commit/a54d81f597963b8768ce2b94a8ef570f9eaaac25
  Author: Zurab Tsinadze <zurab.tsinadze at ericsson.com>
  Date:   2020-02-19 (Wed, 19 Feb 2020)

  Changed paths:
    M clang/docs/analyzer/checkers.rst
    M clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
    M clang/include/clang/StaticAnalyzer/Core/BugReporter/CommonBugCategories.h
    M clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
    A clang/lib/StaticAnalyzer/Checkers/cert/PutenvWithAutoChecker.cpp
    M clang/lib/StaticAnalyzer/Core/CommonBugCategories.cpp
    A clang/test/Analysis/cert/pos34-c-fp-suppression.cpp
    A clang/test/Analysis/cert/pos34-c.cpp

  Log Message:
  -----------
  [analyzer] CERT: POS34-C

Summary:
This patch introduces a new checker:
`alpha.security.cert.pos.34c`

This checker is implemented based on the following rule:
https://wiki.sei.cmu.edu/confluence/x/6NYxBQ
The check warns if  `putenv` function is
called with automatic storage variable as an argument.

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




More information about the All-commits mailing list