Closed illwieckz closed 9 years ago
qstat -xml -utf8 -gsm,ut2004 gsm.qtracker.com:28900
is running fine.
qstat -json -gsm,ut2004 gsm.qtracker.com:28900
too
it's related to the name transformation features, using the undocumented -nnx
switch fixes the problem. See 8dd3f4a.
Ok, got it, there was a line doing that:
sprintf(color, "#%02hhx%02hhx%02hhx", s[0], s[1], s[2]);
On a color
string with size 5, supposedly for #NNN\0', but the color code are stored as hex numbers with two char, like that:
#F84040\0`, so a 8 sized string.
Hi, when I try to query a gamespy-like master server for ut2004 servers, I get a buffer overflow:
In fact,
qstat
fails on this server:77.111.250.121:27025
, queryingqstat -gps 77.111.250.121:27025
does the same.It fails on
sprintf
in thexform_name_u2
function inxform.c
.I'm using the last revision of the master branch.