[PATCH] D35068: Detect usages of unsafe I/O functions

Daniel Kolozsvari via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 6 09:52:48 PDT 2017


koldaniel created this revision.

There are certain unsafe or deprecated (since C11) buffer handling
functions which should be avoided in safety critical code. They
could cause buffer overflows. Two new checks had been implemented
which warn for every occurrence of such functions
(unsafe or deprecated printf, scanf family and other buffer
handling functions, which now have a secure variant).


https://reviews.llvm.org/D35068

Files:
  include/clang/StaticAnalyzer/Checkers/Checkers.td
  lib/Driver/Tools.cpp
  lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
  test/Analysis/security-syntax-checks.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35068.105452.patch
Type: text/x-patch
Size: 25368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170706/c6872f59/attachment-0001.bin>


More information about the cfe-commits mailing list