aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Sema/Sema.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-02-16 01:57:07 +0000
committerTed Kremenek <kremenek@apple.com>2011-02-16 01:57:07 +0000
commita0125d8520f65aca581378c235384e7affefa1fc (patch)
treef414ba8e8fae306c6eae82dc32c20f45fbcd4879 /include/clang/Sema/Sema.h
parenta1fdb0bc09aa0d17841cdbdd8c52cd1368251cbf (diff)
Add trivial buffer overflow checking in Sema.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/Sema.h')
-rw-r--r--include/clang/Sema/Sema.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h
index e76bd67a3c..23bcb94976 100644
--- a/include/clang/Sema/Sema.h
+++ b/include/clang/Sema/Sema.h
@@ -5056,7 +5056,8 @@ public:
SourceLocation getLocationOfStringLiteralByte(const StringLiteral *SL,
unsigned ByteNo) const;
-private:
+private:
+ void CheckArrayAccess(const ArraySubscriptExpr *ae);
bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall);
bool CheckBlockCall(NamedDecl *NDecl, CallExpr *TheCall);