mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 16:30:43 +00:00
remove a whole swath of potential buffer overflows by removing the buffer.
Also audit a few of the "FIXME: overflow" tags
This commit is contained in:
parent
59c26b5ce0
commit
ada828bdc9
12 changed files with 246 additions and 310 deletions
|
@ -1290,7 +1290,7 @@ QFS_Open (const char *path, const char *mode)
|
|||
QFile *
|
||||
QFS_WOpen (const char *path, int zip)
|
||||
{
|
||||
char mode[5] = "wb\000\000";
|
||||
char mode[5] = "wb\000\000\000";
|
||||
|
||||
if (zip) {
|
||||
mode[2] = 'z';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue