Files
clang-p2996/clang/test/CodeGen
Alexey Samsonov 8e1162c71d Implement nonnull-attribute sanitizer
Summary:
This patch implements a new UBSan check, which verifies
that function arguments declared to be nonnull with __attribute__((nonnull))
are actually nonnull in runtime.

To implement this check, we pass FunctionDecl to CodeGenFunction::EmitCallArgs
(where applicable) and if function declaration has nonnull attribute specified
for a certain formal parameter, we compare the corresponding RValue to null as
soon as it's calculated.

Test Plan: regression test suite

Reviewers: rsmith

Reviewed By: rsmith

Subscribers: cfe-commits, rnk

Differential Revision: http://reviews.llvm.org/D5082

llvm-svn: 217389
2014-09-08 17:22:45 +00:00
..
2013-10-26 15:43:55 +00:00
2014-07-30 22:52:16 +00:00
2013-05-14 12:45:47 +00:00
2014-05-23 19:07:25 +00:00
2014-07-30 22:52:16 +00:00
2014-08-14 17:17:57 +00:00
2013-12-13 19:44:40 +00:00
2014-08-13 19:18:20 +00:00
2014-08-26 12:48:06 +00:00
2013-07-16 20:19:04 +00:00
2013-07-04 15:04:25 +00:00
2014-05-20 17:12:51 +00:00
2014-08-26 21:10:47 +00:00
2013-11-20 20:35:34 +00:00
2013-12-16 19:53:26 +00:00
2013-07-04 14:51:11 +00:00
2013-07-03 01:43:57 +00:00
2014-07-30 22:52:16 +00:00
2014-04-08 22:49:38 +00:00
2014-02-24 19:24:15 +00:00
2013-12-16 19:53:26 +00:00
2014-01-11 21:22:35 +00:00
2014-08-14 15:14:51 +00:00