[cfe-dev] array bounds checking, especially with the strcmp built-in
Joerg Sonnenberger
joerg at britannica.bec.de
Mon Nov 4 06:08:58 PST 2013
On Thu, Oct 31, 2013 at 10:27:49PM -0700, Fabian Frank wrote:
> Hi Guys,
>
>
> I am compiling a codebase with clang 3.4 (Ubuntu clang version 3.4-1ubuntu1 (trunk) (based on LLVM 3.4)) for the first time and trying to get the benefits of its array bounds checking feature. At one point the following in dirent.h
> strcut dirent {
> …
> char d_name[0]
> }
That should be "char d_name[]" without the 0.
Joerg
More information about the cfe-dev
mailing list