[PATCH] Fix analyzer crash when defining strange prototype of malloc

Jordan Rose jordan_rose at apple.com
Fri Sep 5 09:43:35 PDT 2014


On Sep 4, 2014, at 5:28 , Daniel Fahlgren <daniel at fahlgren.se> wrote:

> Hi Jordan,
> 
> On Wed, 2014-09-03 at 19:18 -0700, Jordan Rose wrote:
>> This seems like a reasonable approach. It's not wonderful, but it's
>> more a sanity check than anything else, right?
> 
> Yes this is only a sanity check. If someone redefines malloc to
> something strange there isn't much we can do.
> 
>> Feel free to remove the check from a few lines down. Please add a test
>> case as well.
> 
> Attached is a new patch with two test cases.

Thanks, committed in r217258.
Jordan



More information about the cfe-commits mailing list