7 Most Common Programming and Coding Mistakes

The following are some of the most common programming and coding mistakes made by developers. These errors have resulted in widespread outages, data theft, intrusions and more. Some of the errors are particular to certain languages such as C, C++, etc. but some are common across other languages such as Java, JavaScript, Python etc.computer science computer science computer science computer science computer science

We recommend that you check this list often to make sure you are not making any of these in your code. This list is sorted in the order of importance from top to bottom.

1. Buffer Overflow

Buffer Overflow occurs when data is written into a buffer past its end. It may arise due to faulty calculations of the write position. Or continuous writing into a buffer without checking the length. Whatever the reason, this error is one of the most common and has resulted in major exploits. Some of these include the Morris Internet Worm in 1988, W32/Nimda worm in 2001, and Sendmail error in 2003.computer science computer science computer science computer science computer science

A C Example:

char array[6] = "hello";
strcat(array, ", joe"); /* <- This line causes a buffer overflow. */
10 Most Common Programming and Coding Mistakes buffer overflow
Prev1 of 4Next

Leave a Reply

Your email address will not be published. Required fields are marked *