Posts Tagged ‘Null Pointer Dereference’

  • Top 5 C/C++ quality bugs

    on Jul 14, 09 • by Alen Zukich • with 1 Comment

    A recent article on the top five causes of poor software quality and top 5 non-technical mistakes inspired me to also provide a top five on software quality bugs.  Here is my top 5 list of bugs (with some simple examples) that I see time and time again looking at customer code: 1.    Null Pointer dereference This is far and beyond the most common issue that I see time and time again. void npd_gen_must() { int *p = 0; // NULL is assigned. *p = 1;  // pointer is dereferenced } Now this example is

    Read More »
  • Static analysis and code reviews

    on May 19, 09 • by Alen Zukich • with 1 Comment

    Jason certainly hits the nail on the head.  Automation, specifically using static analysis, is key and it should be tightly integrated with your code review. Although we need to be careful where we label source code analysis.  Static source code analysis certainly can find those low level issues such as labeling your local variables correctly, but it goes beyond simple code style issues. Where static source code analysis can really help is with the deep inter-procedural context that it can provide.  For example, during a code review you go through some code with a number

    Read More »
Scroll to top