diff options
author | Jon Hood <squinky86@gentoo.org> | 2004-11-27 15:59:34 +0000 |
---|---|---|
committer | Jon Hood <squinky86@gentoo.org> | 2004-11-27 15:59:34 +0000 |
commit | d2e286a9ac8e99ffca7ae68af24bf8fa24aacf7a (patch) | |
tree | de19b7656bdcb2d7b47904edd40aa9064ad5f1f5 /net-p2p/opendchub/files | |
parent | Fixed up the path patch, added initial amd64 support, and closing bugs #61801... (diff) | |
download | gentoo-2-d2e286a9ac8e99ffca7ae68af24bf8fa24aacf7a.tar.gz gentoo-2-d2e286a9ac8e99ffca7ae68af24bf8fa24aacf7a.tar.bz2 gentoo-2-d2e286a9ac8e99ffca7ae68af24bf8fa24aacf7a.zip |
fix buffer overflow, #72371
Diffstat (limited to 'net-p2p/opendchub/files')
-rw-r--r-- | net-p2p/opendchub/files/0.7.14-overflow.patch | 12 | ||||
-rw-r--r-- | net-p2p/opendchub/files/digest-opendchub-0.7.14-r2 (renamed from net-p2p/opendchub/files/digest-opendchub-0.7.14-r1) | 0 |
2 files changed, 12 insertions, 0 deletions
diff --git a/net-p2p/opendchub/files/0.7.14-overflow.patch b/net-p2p/opendchub/files/0.7.14-overflow.patch new file mode 100644 index 000000000000..996ff65fd0ae --- /dev/null +++ b/net-p2p/opendchub/files/0.7.14-overflow.patch @@ -0,0 +1,12 @@ +diff -Naur opendchub-0.7.14.vanilla/src/commands.c opendchub-0.7.14/src/commands.c +--- opendchub-0.7.14.vanilla/src/commands.c 2003-11-15 08:07:43.000000000 -0600 ++++ opendchub-0.7.14/src/commands.c 2004-11-27 09:54:57.113410240 -0600 +@@ -2842,7 +2842,7 @@ + { + char move_string[MAX_HOST_LEN+20]; + +- sprintf(move_string, "$ForceMove %s", buf); ++ snprintf(move_string, MAX_HOST_LEN, "$ForceMove %s", buf); + + send_to_humans(move_string, REGULAR | REGISTERED | OP, user); + remove_all(UNKEYED | NON_LOGGED | REGULAR | REGISTERED | OP, 1, 1); diff --git a/net-p2p/opendchub/files/digest-opendchub-0.7.14-r1 b/net-p2p/opendchub/files/digest-opendchub-0.7.14-r2 index 6c64f2c5990a..6c64f2c5990a 100644 --- a/net-p2p/opendchub/files/digest-opendchub-0.7.14-r1 +++ b/net-p2p/opendchub/files/digest-opendchub-0.7.14-r2 |