[ubsan] nonnull and returns_nonnull sanitization

Richard Trieu rtrieu at google.com
Tue Jul 1 18:33:53 PDT 2014


-Wnonnull already warns when it is known at compiler time that a null is
used in these places.  Nick will know if Clang marks parameters and return
values as non-null for optimization purposes.


On Tue, Jul 1, 2014 at 5:04 PM, Chandler Carruth <chandlerc at google.com>
wrote:

>
> On Tue, Jul 1, 2014 at 4:35 PM, Alexey Samsonov <vonosmas at gmail.com>
> wrote:
>
>> Sorry for delay.
>>
>> +Richard
>>
>> I think we are interested in adding these checks to Clang. I'll try to
>> take a look at how hard it is to implement them in the frontend (it
>> shouldn't be so), and then work on landing your patch into compiler-rt.
>> Thanks!
>>
>
> +1, these would be awesome. Richard Trieu and Nick Lewycky might be able
> to help with this as well as he has been working on related warnings and
> such.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140701/89e7bc7a/attachment.html>


More information about the llvm-commits mailing list