[Bf-committers] PVS-Studio Static Analysis

Campbell Barton ideasman42 at gmail.com
Wed Apr 25 07:44:48 CEST 2012


for obvious things they mostly find the same issues (even same false
positives), but each have a handful that are unique.
I've ran blender through cppcheck, splint, sparse and clang-static-checler.

the problem is that once you wade through the error logs (mainly false
positives), and fixed the actual bugs...
Running a second time gives you only the false positives again.
If some new bug is added to the source you still needed to read over
the false positives (unless your memory is really good).

long term we need to have a way to notify us when new errors are added.

On Wed, Apr 25, 2012 at 9:30 AM, Nicholas Bishop
<nicholasbishop at gmail.com> wrote:
> Not necessarily; different static analyzers can detect different types
> of potential problems. The PVS analysis contains some interesting
> things like the "Misprint in a homogeneous code block" section that I
> don't think clang's analyzer does.
>
> On Tue, Apr 24, 2012 at 7:20 PM, Tom M <letterrip at gmail.com> wrote:
>> We have a page with generated CLang static analysis,
>>
>> http://clang.blenderheads.org/trunk/
>>
>> It probably shows the same bugs as PVS-Studio does.
>>
>> LetterRip
>>
>> On Tue, Apr 24, 2012 at 4:15 PM, Nicholas Bishop
>> <nicholasbishop at gmail.com> wrote:
>>> I think some of these have been fixed already in recent commits from Campbell.
>>>
>>> On Tue, Apr 24, 2012 at 7:11 PM, Jason Wilkins
>>> <jason.a.wilkins at gmail.com> wrote:
>>>> http://www.viva64.com/en/b/0145/#ID0EO3BK
>>>>
>>>> It appears that Andrey Karpov has done an analysis of Blender source
>>>> code using his PVS-Studio tool.  He did this just yesterday, so I
>>>> assume the problems he found are still in the source.  He offers free
>>>> licenses to open source project members (3500 euro software otherwise,
>>>> wow).
>>>>
>>>> I was thinking of investigating the problems he found and seeing if I
>>>> could fix them.
>>>> _______________________________________________
>>>> Bf-committers mailing list
>>>> Bf-committers at blender.org
>>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>> _______________________________________________
>>> Bf-committers mailing list
>>> Bf-committers at blender.org
>>> http://lists.blender.org/mailman/listinfo/bf-committers
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



-- 
- Campbell


More information about the Bf-committers mailing list