
If a large packet is received, the stack would overflow when the username size was determined from the packet size. The code must not assume anything about the size of the packet being read.
If a large packet is received, the stack would overflow when the username size was determined from the packet size. The code must not assume anything about the size of the packet being read.