[cfe-commits] [PATCH] 3 small static analyzer patches

Sean McBride sean at rogue-research.com
Thu Oct 18 07:56:47 PDT 2012


On Fri, 21 Sep 2012 09:51:32 -0700, Jordan Rose said:

>The reallocf change looks good. The place to add a test is unix-fns.c,
>which you probably already found. I'll let you come up with a test case
>just to practice. ;-) Welcome to the static analyzer!

Hi,

Here's a new patch with test.  I confirmed that it builds, and that the build result detects reallocf(zero-size).  I didn't run all the unit/regression tests though, because, despite their being instructions, I couldn't figure out how.  I suspect one must built with autotools and not cmake to be able to run them?

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reallocf-take2.patch
Type: application/octet-stream
Size: 3248 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121018/d0eda8fd/attachment.obj>


More information about the cfe-commits mailing list