[PATCH] Make analyzer correctly calculate return value of mempcpy
Anna Zaks
ganna at apple.com
Fri Oct 3 15:02:43 PDT 2014
Committed in r219024.
Thanks Daniel!
> On Oct 2, 2014, at 6:18 PM, Anna Zaks <ganna at apple.com> wrote:
>
>>
>> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141003/908b4dd5/attachment.html>
More information about the cfe-commits
mailing list