diff options
author | Anna Zaks <ganna@apple.com> | 2012-01-07 02:33:10 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-01-07 02:33:10 +0000 |
commit | 9f03b62036a7abc0a227b17f4a49b9eefced9450 (patch) | |
tree | 6e27759e6d53b64d69ba1581dc41413c4344d332 /lib/StaticAnalyzer/Core/ProgramState.cpp | |
parent | b004a494375ecac178d956edeae42ac680e8d34e (diff) |
[analyzer] Add basic format string vulnerability checking.
We already have a more conservative check in the compiler (if the
format string is not a literal, we warn). Still adding it here for
completeness and since this check is stronger - only triggered if the
format string is tainted.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ProgramState.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/ProgramState.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/ProgramState.cpp b/lib/StaticAnalyzer/Core/ProgramState.cpp index 8a287e9e16..86a9ac0357 100644 --- a/lib/StaticAnalyzer/Core/ProgramState.cpp +++ b/lib/StaticAnalyzer/Core/ProgramState.cpp @@ -640,7 +640,7 @@ bool ProgramState::isTainted(const MemRegion *Reg, TaintTagType K) const { return false; } -bool ProgramState::isTainted(const SymExpr* Sym, TaintTagType Kind) const { +bool ProgramState::isTainted(SymbolRef Sym, TaintTagType Kind) const { if (!Sym) return false; |