yquake2remaster/src/common
Yamagi Burmeister 2c11d02b80 Fix Com_VPrintf() for messages longer then 4096 chars.
At least with MinGW on Windows vsnprintf() treats buffer < size as an
error, returning -1 instead of the number of characters that would have
been printed without size restrictions. Therefor msgLen may be wrong,
leading to all kind of funny mistakes further down below... Buffer
overflow included. Work around this by handling the msgLen < 0 case and
adding an explicit terminating \0.

This is another case of "I wonder why nobody has never noticed this",
the GL1 renderers extension string triggered the buffer overflow each
time the game started.
2019-04-28 13:57:46 +02:00
..
header Fix case of map savegames name (save/bla/MAPNAME.sav/sv2) 2019-02-17 18:46:57 +01:00
shared Use _wfopen() instead of _wfopen_s to stay compatible with Win XP. 2018-06-25 08:16:09 +02:00
unzip Replace zlib dependency by miniz single header library. 2018-08-10 10:24:25 +02:00
argproc.c Move stuff from common/common/ to common/ 2012-06-07 13:54:08 +02:00
clientserver.c Fix Com_VPrintf() for messages longer then 4096 chars. 2019-04-28 13:57:46 +02:00
cmdparser.c commandline argument --help that documents most important arguments 2018-07-10 21:46:57 +02:00
collision.c Not all libc support the %z format modifier added in C99... 2019-02-05 17:18:01 +01:00
crc.c Move several CRC function from misc.c to crc.c. 2017-09-07 13:22:36 +02:00
cvar.c Revert "rename gl_anisotropic to r_anisotropic" 2018-09-03 21:22:01 +03:00
filesystem.c Fix case of map savegames name (save/bla/MAPNAME.sav/sv2) 2019-02-17 18:46:57 +01:00
frame.c Some more fixes to the timing calculations. 2019-04-08 13:56:56 +02:00
glob.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00
md4.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00
movemsg.c Fix several potential security vulnerabilties 2015-08-24 17:58:19 +02:00
netchan.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00
pmove.c Fix indention 2014-08-24 10:26:50 +02:00
szone.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00
zone.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00