Print This Article Post Comment Add To Favorites Email to Friends Ezine Ready

Automated Source Code Analysis

By: Gwyn Fisher Home | Computers-and-Technology | Software


Introduction:
Automated source code analysis is technology aimed at locating and describing areas of weakness in source code. Those weaknesses might be security vulnerabilities, logic errors, implementation defects, concurrency violations, rare boundary conditions, or many other types of problem-causing code.

The name of the associated research field is static code analysis. This is differentiated from more traditional dynamic analysis techniques such as unit or penetration test by the fact that the work is performed at build time using only the source code of the program or module in question. The results reported are therefore generated from a complete view of every possible execution path, rather than some aspect of a necessarily limited observed runtime behavior.

Perhaps the most obvious question confronting any new developer-facing technology is: why?

â€Why should developers use a new tool when they already have so many to choose from?
â€What makes this technology compelling enough to make me want to add it to my already bloated
build chain?
â€And what does it do, anyway?

This paper will answer these questions, and more. But for the moment just consider the fact that at time of writing, 80% of the Fortune 500 have already deployed, or are currently engaged in deploying, some kind of automated source code analysis. The reasons for doing so can be stated in as many ways as there are people answering the question, but the basic principle can be found in all of these deployments:

â€Tell me what’s wrong with my code before I ship it †don’t let me be the guy responsible for shipping a killer vulnerability or bug into the wild.

There are other compelling reasons, such as:

â€Make my existing processes for code review more effective through automation
â€Enhance my existing QA resource with 100% coverage of all boundary conditions
â€Help me protect my brand as we go to market with new products

But the bottom line remains the capability of this technology to afford developers the ability to scrub their code of obvious and not-so-obvious weaknesses as they work, before they submit their code for check-in and more formal down-stream validation procedures.
Introduction to the technology:

The process of automated source code analysis involves building a rich representation or model of the provided code (akin to a compilation phase), and then simulating all possible execution paths through that model, mapping out the flow of logic on those paths coupled with how and where data objects are created, used and destroyed.

Once the projection of code paths and the mapping of data objects are available, we can look for anomalous conditions that either will or might potentially cause exploitable vulnerabilities, execution failure, or data corruption at runtime.

There are two major families of checking capability typical to this type of analysis: abstract syntax tree (AST) validation and code path analysis. The former case is most frequently applied to validation of the basic syntax and structure of code, whereas the latter is used for more complete types of analysis that depend on understanding the state of a program’s data objects at any particular point on a code execution path.



Article Source: http://www.eArticlesOnline.com

About the Author:
Gwyn Fisher is the CTO of Klocwork, a leading developer of source code analysis software and expert in static code analysis software. At Klocwork, he is responsible for guiding the company’s technical direction and strategy. With nearly 20 years of global technology experience, Gwyn brings a valuable combination of vision, experience, and direct insight into the developer perspective.

Tags: , , , , , ,

Please Rate this Article

 

Not yet Rated

Click the XML Icon Above to Receive Software Articles Via RSS!

Recent Related Articles From Software

  • Pc Mall Coupons, Pc Mall Coupon Code, Pc Mall Promo Code
    By: Maria Mathew | Oct 24th 2009
    These days people often opt for online shopping as it preserve a lot of time and bucks. Trend of online shopping is increasing day to day and more by using pc mall coupons, pc mall coupon code, pc mall promo codes. Read

  • Entirely Pets Coupons, Entirely Pets Coupon Code, Entirely Pets Promo Code
    By: GM Robinson | Oct 14th 2009
    Online shopping! is in a flourishing period as more and more retail giants take their business to online commerce what they call as e-retailers in lieu of traditional brick and mortar stores. Read

  • Shoe Buy Coupons, Shoe Buy Coupon Code, Shoe Buy Promo Code
    By: Liam Gallagher | Oct 22nd 2009
    To save money for bad days in life is an essential factor and that too when building a family. Countless people turn to bargains, discounts, sales to get the item at price they can save a lot for their family needs. Read

  • Save Money With Pc Mall Coupons, Coupon Codes And Promo Code
    By: Elmira Vega | Nov 10th 2009
    PC Mall is a B2B provider of business solutions and a leading direct marketer that offers more than a hundred thousand different products from top of the line CPUs like desktops, notebooks to servers, creative and business software, storage, routers. Read

  • Televising Through Consumer Electronics
    By: Jim Brown | Jul 26th 2007
    Many people around the world were elated when the color television was invented. Read

  • How Search For Zip Code Finder
    By: Gupta | Jul 24th 2007
    Zipcode Finder is a comprehensive tool to find the zip code of any USA city/state. Also, users can enter their zip code to find out the cities or zip codes within a given distance from their zip code. Read

  • Postal Code Bar
    By: Gupta | Jul 24th 2007
    Zipcode Finder is a comprehensive tool to find the zip code of any USA city/state. Also, users can enter their zip code to find out the cities or zip codes within a given distance from their zip code. Read

  • On Sale Coupon Code To Complete The Sale.
    By: autosellernetwork | Oct 5th 2009
    These days many buyers are looking for discounts and On Sale coupon code for the products they want - and offering the best price is a tried and true strategy for increasing sales in any type of business. Read

  • Save Your Money With Shoe Buy Coupon Code And Promo Code
    By: George Clooney | Nov 10th 2009
    Shoe buy coupons, Shoe buy coupon code and Shoe buy promo code are not just for the grocery store but to get the best deal on footwear’s from popular brands such as Adidas, Bass, Dr. Martens and K-Swiss. Read

  • Shoe Buy Coupons, Shoe Buy Coupon Code Or Shoe Buy Promo Code
    By: Zac Efron | Nov 30th 2009
    Internet coupons offered by CouponUS are so useful and beneficial that you get habit of using these for your shopping days. If you haven’t taken advantage of using Shoe buy coupons, Shoe buy coupon code or Shoe buy promo code, then you are surely missing something and losing money from your pocket. I am sure that you are ... Read


Copyright © 2005-2011 eArticlesOnline, LLC - All Rights Reserved
Terms of Service | Privacy Policy