[PATCH] Make analyzer correctly calculate return value of mempcpy
Anna Zaks
ganna at apple.com
Thu Oct 2 18:18:49 PDT 2014
Looks good to me.
Anna.
> On Oct 2, 2014, at 2:15 AM, Daniel Fahlgren <daniel at fahlgren.se> wrote:
>
> On Fri, 2014-09-12 at 01:01 +0200, Daniel Fahlgren wrote:
>> 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?
>
> Ping?
>
> Cheers,
> Daniel Fahlgren
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list