[PATCH] Teach CastSizeChecker about flexible arrays

Daniel Fahlgren daniel at fahlgren.se
Mon Feb 10 11:45:31 PST 2014


Hi,

I got a false positive at work and this patch fixes it. CastSizeChecker
will now handle structs ending with a flexible array. It will no longer
warn when you allocate sizeof the struct + a multiple of the array's
element size.

Best regards,
Daniel Fahlgren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CastSizeChecker.patch
Type: text/x-patch
Size: 9469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140210/8b0fa242/attachment.bin>


More information about the cfe-commits mailing list