Chip-8-Emulator
Chip-8-Emulator copied to clipboard
Buffer overflow in chip8_start()
There's an obvious buffer overflow vulnerability in chip8_start() as a fixed-size buffer is used with scanf without width limit.
This could be circumvented by changing the format string to something like
scanf("%99s", name);
or, even better, adopting argv and/or getopt for parsing the command line arguments.