[all-commits] [llvm/llvm-project] 6d485f: Improve static checks for sprintf and __builtin___...
serge-sans-paille via All-commits
all-commits at lists.llvm.org
Sat Jan 25 09:10:46 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 6d485ff455ea2b37fef9e06e426dae6c1241b231
https://github.com/llvm/llvm-project/commit/6d485ff455ea2b37fef9e06e426dae6c1241b231
Author: serge-sans-paille <sguelton at redhat.com>
Date: 2020-01-25 (Sat, 25 Jan 2020)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaChecking.cpp
M clang/test/Sema/warn-fortify-source.c
Log Message:
-----------
Improve static checks for sprintf and __builtin___sprintf_chk
Implement a pessimistic evaluator of the minimal required size for a buffer
based on the format string, and couple that with the fortified version to emit a
warning when the buffer size is lower than the lower bound computed from the
format string.
Differential Revision: https://reviews.llvm.org/D71566
More information about the All-commits
mailing list