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

Daniel Fahlgren daniel at fahlgren.se
Thu Sep 4 05:28:20 PDT 2014


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.

Cheers,
Daniel Fahlgren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: analyzer_crash.patch
Type: text/x-patch
Size: 1650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140904/ac6e7dbe/attachment.bin>


More information about the cfe-commits mailing list