February 2021
Beginner
338 pages
4h 11m
English
This function is extremely dangerous as it can cause a buffer overflow and allows for potential buffer-overflow attacks. The function is deprecated in the C99 standard and removed in the C11 standard. Do not use this function!
The workaround is to use the fgets alternative. Unlike gets, the fgets function performs bounds checking and is safe from buffer overflow scenario.
Read now
Unlock full access