diff options
author | kris <kris@FreeBSD.org> | 2000-05-25 15:50:10 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-05-25 15:50:10 +0800 |
commit | 8f9d1a7df2ae1891a827d25a0b1bbec715b1b3f3 (patch) | |
tree | 9ee4ccb7d4fc92b6d4df6e14b6627101b1d130bf /mail/popper | |
parent | 6c902a50452d34f389301932c7e2c036e21905f1 (diff) | |
download | freebsd-ports-gnome-8f9d1a7df2ae1891a827d25a0b1bbec715b1b3f3.tar.gz freebsd-ports-gnome-8f9d1a7df2ae1891a827d25a0b1bbec715b1b3f3.tar.zst freebsd-ports-gnome-8f9d1a7df2ae1891a827d25a0b1bbec715b1b3f3.zip |
unFORBID this port by closing the overflow
Diffstat (limited to 'mail/popper')
-rw-r--r-- | mail/popper/Makefile | 2 | ||||
-rw-r--r-- | mail/popper/files/patch-an | 22 |
2 files changed, 20 insertions, 4 deletions
diff --git a/mail/popper/Makefile b/mail/popper/Makefile index 475d5eb758fa..097d8d9d8c82 100644 --- a/mail/popper/Makefile +++ b/mail/popper/Makefile @@ -14,8 +14,6 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= ache@freebsd.org -FORBIDDEN= "Remote buffer overflow yielding gid mail" - # Set POPD_YOUBIN_SUPPORT variable in the environment to enable # youbin support. # diff --git a/mail/popper/files/patch-an b/mail/popper/files/patch-an index e255bf9046f5..cac9402c9821 100644 --- a/mail/popper/files/patch-an +++ b/mail/popper/files/patch-an @@ -1,5 +1,14 @@ ---- pop_uidl.c.old Fri Jul 10 03:44:08 1998 -+++ pop_uidl.c Mon Apr 17 22:56:13 2000 +--- pop_uidl.c.orig Thu Jul 9 16:44:08 1998 ++++ pop_uidl.c Thu May 25 00:45:38 2000 +@@ -59,7 +59,7 @@ + + sprintf(buffer, "%d %s", msg_id, mp->uidl_str); + if (nl = index(buffer, NEWLINE)) *nl = 0; +- return (pop_msg (p,POP_SUCCESS, buffer)); ++ return (pop_msg (p,POP_SUCCESS, "%s", buffer)); + } + } else { + /* yes, we can do this */ @@ -98,6 +98,7 @@ { static char buf[MAXLINELEN]; @@ -17,6 +26,15 @@ return(cp); } } +@@ -149,7 +152,7 @@ + sprintf(buffer, "%d %s", msg_id, mp->uidl_str); + if (nl = index(buffer, NEWLINE)) *nl = 0; + sprintf(buffer, "%s %d %.128s", buffer, mp->length, from_hdr(p, mp)); +- return (pop_msg (p,POP_SUCCESS, buffer)); ++ return (pop_msg (p,POP_SUCCESS, "%s", buffer)); + } + } else { + /* yes, we can do this */ @@ -165,7 +168,7 @@ sprintf(buffer, "%d %s", x, mp->uidl_str); |