[PATCH] Make analyzer correctly calculate return value of mempcpy

Daniel Fahlgren daniel at fahlgren.se
Thu Sep 11 16:01:25 PDT 2014


Hi,

the return value of mempcpy is only correct when the destination type is
one byte in size. This patch casts the argument to a char* so the
calculation is also correct for structs, ints etc. Comments?

Regards,
Daniel Fahlgren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mempcpy.patch
Type: text/x-patch
Size: 2338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140912/a9236ec1/attachment.bin>


More information about the cfe-commits mailing list