What is Buffer Overflow ?
What is Buffer Overflow in C?
Buffer overflow is a vulnerability in low level codes of C and C++. An attacker can cause the program to crash, make data corrupt, steal some private information or run his/her own code. It basically means to access any buffer outside of it's alloted memory space. short read: https://dhavalkapil.com/blogs/Buffer-Overflow-Exploit/
When the amount data being added to a storage area exceeds the amount of space allocated for it.
Look at this code: https://code.sololearn.com/ckFSDcUG35JU/?ref=app