Posts

Showing posts with the label backend mistakes

5 BackEnd Flaws a developer should avoid.

Image
1. Input Checking Constantly check user input to make certain it is what you expected. Ensure it will not contain characters or other data which may be treated in a special way because of your program or any programs called by your program. This often involves checking for character types such as quotes and checking for unusual type characters such as non-alphanumeric characters where a textual content string is expected. Typically, they are a sign of an attack of some kind being attempted. (image source: pixabay.com) 2. Range Checking Always check the ranges when copying data, allocating memory or executing any procedure which could potentially overflow. Some encoding languages provide range-checked port access (such as the std:: vector:: at() in C++, but many computer programmers insist on using the unchecked array index [] notation. In addition, the use of functions such as strcpy() should be avoided in preference to strncpy(), that allows you to specify the maximum volume...