[PATCH] D71033: [analyzer] CERT: StrChecker: 32.c

Csaba Dabis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 4 14:21:27 PST 2019


Charusso created this revision.
Charusso added a reviewer: NoQ.
Charusso added a project: clang.
Herald added subscribers: cfe-commits, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun.

This checker warns on most of the following rules:
https://wiki.sei.cmu.edu/confluence/display/c/STR32-C.+Do+not+pass+a+non-null-terminated+character+sequence+to+a+library+function+that+expects+a+string


Repository:
  rC Clang

https://reviews.llvm.org/D71033

Files:
  clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
  clang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicSize.h
  clang/lib/StaticAnalyzer/Checkers/cert/StrChecker.cpp
  clang/lib/StaticAnalyzer/Core/DynamicSize.cpp
  clang/test/Analysis/Inputs/system-header-simulator.h
  clang/test/Analysis/cert/str32-c-notes.cpp
  clang/test/Analysis/cert/str32-c.cpp
  clang/test/Analysis/malloc.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71033.232211.patch
Type: text/x-patch
Size: 21274 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191204/f96b5aa6/attachment-0001.bin>


More information about the cfe-commits mailing list