Twenty-five characters, sixteen boxes
A program sets aside a buffer of 16 boxes for a city name and copies input into it without checking the length. Someone types a 25-character name.
How many characters spill past the end of the buffer?
Builds on BUGS-2 Too much input: buffer overflows.
Need a hint?
Open the hints one at a time. The worked solution unlocks after the last hint.
1Nudge
2Approach
Opens after hint 1.
3Walk-through
Opens after hint 2.
Worked solution
Locked. Open all 3 hints first.