ec- / baseq3a

Unofficial Quake III Arena gamecode patch
26 stars 24 forks source link

say_team overflow #15

Closed wizq3 closed 3 years ago

wizq3 commented 3 years ago

if a player's name is maximum length (32) and they use say_team command at a location on map where target_location is >= 20 chars it will crash the game with "Com_Sprintf: Overflow of 64 (or more) in 64"

this happens in various locations on various maps but one example go to quad in center of q3ctf3 and use say_team (Middle Battlegrounds). it doesn't matter the message length, it crashes because the name[64] buffer used it too small to hold the name and location plus other formatting in string.

the solution is to just increase "name" buffer size in G_Say (g_cmds.c)

ec- commented 3 years ago

Please check now

wizq3 commented 3 years ago

Yes it works now.