[PATCH] Make VLA size checker detect negative array sizes
Daniel Fahlgren
daniel at fahlgren.se
Thu Jun 5 04:41:11 PDT 2014
Hi,
The following patch makes the VLA size checker detect and warn about
code like:
int i = -4;
char array[i];
The old behavior was to silently convert it to a size_t.
Best regards,
Daniel Fahlgren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VLA.patch
Type: text/x-patch
Size: 3372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140605/8619c13d/attachment.bin>
More information about the cfe-commits
mailing list