C/C++

The Last Line Effect

Copy-Paste

I have studied numbers of errors caused by using the Copy-Paste method and can assure you that programmers most often tend to make mistakes in the last fragment of a homogeneous code block. I have never seen this phenomenon described in books on programming, so I decided to write about it myself. I called it the "last line effect".

Pointer Checker to detect buffer overflows and dangling pointers (part 2)

Overview

 
A dangling pointer arises when you use the address of an object after its lifetime. This may occur in situations like returning addresses of the automatic variables from a function or using the address of the memory block after it is freed.
  • Developers
  • Professors
  • Students
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8.x
  • Unix*
  • C/C++
  • Beginner
  • Intermediate
  • Intel® C++ Compiler
  • Intel® Parallel Studio XE Professional Edition
  • pointer checker to check buffer overflow
  • dangling pointers
  • C/C++
  • out-of-bounds errors
  • pointer poroblems
  • Debugging
  • Flaws of Object Oriented Modeling

    At the beginning of the computer era the system designers came from the world of hardware and it is noticeable. In hardware there are many working elements that can operate in parallel and most times at different rates of operation. This requires hi degree of accuracy in system timing. Chip designers count the number of transistors between two elements to make sure that the Operation Flow is maintained.

    Subscribe to C/C++