Slashdot Mirror


LAMP Lights the OSS Security Way

Kevin Young wrote to mention a ZDNet article which goes into some detail on new results from a Department of Homeland security initiative. It's called the 'Open Source Hardening Project', and (funded to the tune of $1.24 Million) the goals of the initiative are to use a commercial tool for source code analysis to buck up the security base of many OSS projects. LAMP (the conglomeration of Linux, Apache, MySQL, and PHP/Perl/Python) was a 'winner' in the eyes of the project. From the article: "In the analysis, more than 17.5 million lines of code from 32 open-source projects were scanned. On average, 0.434 bugs per 1,000 lines of code were found, Coverity said. The LAMP stack, however, 'showed significantly better software quality," with an average of 0.29 defects per 1,000 lines of code, the technology company said.'"

1 of 178 comments (clear)

  1. Re:Maybe I've been reading too much politics latel by masklinn · · Score: 3, Informative

    I assume he means the baseline of 0.434 bugs/1000 lines, and that if they removed PHP from the LAMP stack, that average bug count would go down even further.

    Spot on, as you can see on scan.coverity.com:

    • PHP features 205 defects for 431,327locs, or 0.475 defects/kloc
    • Perl has 91 defects for 431,327locs, or 0.19 defects/kloc
    • Python is very slightly lower than perl (but with a noticeably smaller codebase) at 49 defects for 259,908locs or 0.189 defects/kloc
    • Apache-httpd features 32 defects in 127,817 locs, or 0.25 defect/klock
    MySQL isn't featured (Ruby is also a noticeable absent), but PostgreSQL stands at 296 defects for 815,748 locs, or 0.363 defects/kloc, and the lightweight SQLite has 16 defects for 60,722 locs or 0.263 defect/klock.
    --
    "The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler