 Some novice programmers may not feel that this is a problem, supposing that no user will enter such a long input.This particular bug demonstrates a vulnerability which enables buffer overflow exploits.Here is a solution to this example