Free Newsletters
Technology & Business Daily

InfoWorld
Log-in | Register

Open source code examined

Coverity finds improvements during project to examine more than 55 million lines of code


A code analysis of popular open source software projects has revealed that the quality and security of open source software continues to improve.

In its "Scan Report on Open Source Software 2008," Coverity analyzed more than 55 million lines of code on a recurring basis from more than 250 open source projects. Detailed Tuesday, the project utilized the Coverity Prevent static source code analyzer and was done during a two-year period. Some of the projects analyzed included the Apache Web server, Linux, Firefox, and the Samba file and printer sharing system. Scripting languages such as PHP and Ruby were examined as well.

"We run the source code through our static analysis tool, which identifies certain types of software defects for them and developers can look at the result," said David Maxwell, open source strategist for Coverity.

Coverity in its analysis found that open source developers are interested in code quality and making efforts to make it better and more secure, Maxwell said.

"We can see from the statistics many developers are quite passionate about writing good code," Maxwell said.

The analysis found that:

* The quality and security of open source software continues to improve.

 * There has been a 16 percent reduction in overall static analysis defect density, reflecting the elimination of more than 8,500 individual defects. This reduction figure represents the average reduction from the first analysis of each project to the most recent analysis.

* There is a prevalence of specific defects. "Null pointer reference" was the common defect while "User before test" was the least common.

* Static analysis defect density and function length are statistically uncorrelated. This contradicts conventional wisdom.

* Cyclomatic complexity and the Halstead effort, which are measures of code complexity, are significantly correlated to code base.

* The average rate of false positives identified by open source developers on the Scan site was less than 14 percent.

Also, Coverity found that code base size correlated to the number of defects. The company found it could tell with 72 percent accuracy how many defects would be in the code based on the size of the code.

Coverity's code-scanning service was offered on its Scan site, which was developed with support from the U.S. Department of Homeland Security as part of the federal "Open Source Hardening Project."

The project mostly examined C code but there was some C++ code as well.

Paul Krill is editor at large at InfoWorld.

Talkback:

commentPost a Comment

 

MOST COMMENTS

 
 





TAKE CONTROL OF YOUR CONTENT- LEVERAGE MICROSOFT SHAREPOINT
Microsoft Office SharePoint Server (MOSS) offers core content management designed for a broad user population. Attend this webcast to learn how to implement a strategy that allows for the coexistence of both MOSS and advanced ECM solution within the same IT environment. Sponsor: IBM

»  Click here to view this Webcast
  Zombie PCs Are Attacking Your LAN
A recent study showed that malware-infected zombie PCs are now a bigger threat to ISPs and Web infrastructure than DoS attacks. As this brand new IT Strategy Guide explains, an increased use of peer-to-peer techniques by the attackers has made it harder to fight back. Download now, compliments of Verio:

»  Click here to download now

- Special Advertising Partners -
WHITE PAPERS
 

» Technology White Papers Library

Technology White Papers by Topic

Technology White Papers E-mail Alert

Find out when the latest white paper is available:
 
 
INFOWORLD MARKETPLACE
 
» BUY A LINK NOW
 
 

Video

 
 
 

Podcasts

 
 
 

 

Columnists

 
 
 

Resource Center


Ads by techwords beta  [See your link here]
 




Sponsored Technology Links

 
 
 HOME  NEWS  BLOGS  PODCASTS  VIDEOS  TECHNOLOGIES  TEST CENTER  EVENTS  CAREERS   About | Advertise | Awards | RSS | Contact Us 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy, Terms of Service.
All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses,
phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

CIO :: ComputerWorld :: CSO :: Demo :: GamePro :: Games.net :: IDG Connect :: IDG World Expo
Industry Standard :: IT World :: JavaWorld :: LinuxWorld :: MacUser :: Macworld :: Network World :: PC World :: Playlist