Buffer overflow when server name is too long
When starting a dedicated server with a name that's too long, it crashes immediately on startup:
=========================================================================== We hope you enjoy this game as much as we did making it! =========================================================================== SRB2Kart v1.0.4 (Mar 18 2019 06:28:53 illegal) SDL Linux 64-bit *** buffer overflow detected ***: /usr/games/srb2kart terminated signal_handler() error: SIGABRT - abnormal termination triggered by abort call I_ShutdownTcpDriver: shut down I_ShutdownSystem(): end of logstream. I_ShutdownGraphics(): graphics never started I_ShutdownTcpDriver: shut down
You can do this by setting the server name in dkartconfig.cfg. I only tested this with srb2kart, but I believe it happens in vanilla as well.
Possible fixes: A) Give a better error message (have server exit) B) Concatenate the server name and leave a warning (no server exit)