c - How sparse and coverity tool for static code analysis are different? -
c - How sparse and coverity tool for static code analysis are different? -
i new linux kernel. want know how sparse , coverity tool different ? since both used static code analysis. how decide tool improve ? difference know that: sparse open source coverity should have license utilize it.
is there specific set of bugs can traced coverity/sparse ?
here piece of code in coverity reports issue, sparse not:
foo(){ int x; scanf("%d", &x); switch(x){ case 1: printf("case 1"); case 2: printf("case 2"); break; default: } }
in above set example; coverity study warning of missing break statement in case 1. but,sparse not ?
however, both tools used static code analysis of software. please, share documentation can highlights plus , negatives of both tools.
tools vary in observe , how observe them. general rule, recommend running many tools possible on source code. granted, there number of considerations doing that. first , foremost cost of owning , maintaining 1 tool.
the big names (fortify, code sonar, coverity, klockwerk, etc) expensive buy, , have hefty yearly maintenance cost. on upside, tend preform improve open-source tools.
any tool, open-source or proprietary require "care , feeding", in creation of custom rules, modification of reported etc. should done by, in opinion, dedicated senior programmer versed in theory , practice of secure programming.
the evaluation of tool reports, should done programmer / analyst versed in security. take way message here proficient programmer not secure programmer. there additional sets of knowledge , skills secure programmer.
for brief overview of various tools, suggest looking @ various samate (static-analysis metrics , tool evaluation) reports located here. although not believe samate team ever evaluated "sparse".
i know these more generalities utilize of static analysis tools, given current state of art, suspect these best going get. also, can check out state of art study of software assurance.
c static-code-analysis coverity
Comments
Post a Comment