diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2014-09-08 17:22:45 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-09-08 17:22:45 +0000 |
| commit | 8e1162c71d40ada37c358d17182c68d8d9fad41d (patch) | |
| tree | 6f0f54eaa85f0668b41b63a9e6a1340822c5003d /llvm/tools/llvm-cov/CodeCoverage.cpp | |
| parent | ea65e37beea96207b6fa64959112dc7ba6e44b3c (diff) | |
| download | llvm-8e1162c71d40ada37c358d17182c68d8d9fad41d.zip llvm-8e1162c71d40ada37c358d17182c68d8d9fad41d.tar.gz llvm-8e1162c71d40ada37c358d17182c68d8d9fad41d.tar.bz2 | |
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
Diffstat (limited to 'llvm/tools/llvm-cov/CodeCoverage.cpp')
0 files changed, 0 insertions, 0 deletions
