Fixed buffer overflow vulnerability