diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2001-01-28 23:58:41 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2001-01-28 23:58:41 +0000 |
commit | 7af2e3c04ddb0dbf7736cde472f4886523ecd19c (patch) | |
tree | 4497f72d19c9d595479a6064aeb497f3b52da73d /games/maelstrom | |
parent | Update to 2001.01.07. (diff) |
Fix an exploitable buffer overflow with the HOME environment variable.
No advisory will be released as this port is setgid games and therefore
not a security risk.
Notes
Notes:
svn path=/head/; revision=37707
Diffstat (limited to 'games/maelstrom')
-rw-r--r-- | games/maelstrom/files/patch-ad | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/games/maelstrom/files/patch-ad b/games/maelstrom/files/patch-ad new file mode 100644 index 000000000000..4fc0f1d16d3d --- /dev/null +++ b/games/maelstrom/files/patch-ad @@ -0,0 +1,11 @@ +--- controls.cpp.orig Sun Jan 28 15:51:37 2001 ++++ controls.cpp Sun Jan 28 15:51:49 2001 +@@ -89,7 +89,7 @@ + if ( fname ) { + *fname = datafile; + } +- sprintf(datafile, "%s/%s", home, MAELSTROM_DATA); ++ snprintf(datafile, sizeof(datafile), "%s/%s", home, MAELSTROM_DATA); + if ( (data=fopen(datafile, mode)) == NULL ) + return(NULL); + return(data); |