r175949 - ubsan: Emit bounds checks for array indexing, vector indexing, and (in really simple cases) pointer arithmetic. This augments the existing bounds checking with language-level array bounds information.

Richard Smith richard at metafoo.co.uk
Fri Feb 22 23:03:25 PST 2013


No; see test cases.
On 22 Feb 2013 20:15, "Sean Silva" <silvas at purdue.edu> wrote:

> Will this trigger on the really common usage (in C) of a length-1
> array as the last member of a struct? (I believe this is done for
> compatibility with compilers before flexible array members were
> introduced (C99)?).
>
> -- Sean Silva
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130222/7f7bfe7a/attachment.html>


More information about the cfe-commits mailing list