GetBroadcastMessage is given strlen(m_programName), which can exceed
WelcomeMessageProgramNameSize when the program name is set with a long
string (e.g. by the Python bindings). Clamp the length inside
GetBroadcastMessage, which owns the fixed-size buffer.
Also null-terminate names stored in the Python NameBuffer and reject
names that leave no room for the terminator.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>