aboutsummaryrefslogtreecommitdiff
path: root/mail/popper
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1998-06-28 21:31:18 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1998-06-28 21:31:18 +0000
commit61b9aa4259026860fd2ada0095c21d885efb8875 (patch)
treec6dc8e029a53348640260c85dba6c8a015323055 /mail/popper
parent198779dfaef765a24fdbb903421e873b9a57cd10 (diff)
downloadports-61b9aa4259026860fd2ada0095c21d885efb8875.tar.gz
ports-61b9aa4259026860fd2ada0095c21d885efb8875.zip
Prevent overflow on too long From:
Do not return stack buffer Submitted by: "Aaron D. Gifford" <agifford@infowest.com>
Notes
Notes: svn path=/head/; revision=11589
Diffstat (limited to 'mail/popper')
-rw-r--r--mail/popper/files/patch-aj20
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/popper/files/patch-aj b/mail/popper/files/patch-aj
new file mode 100644
index 000000000000..64e28d14e4d5
--- /dev/null
+++ b/mail/popper/files/patch-aj
@@ -0,0 +1,20 @@
+*** pop_uidl.c.bak Thu Nov 20 00:20:38 1997
+--- pop_uidl.c Mon Jun 29 01:28:01 1998
+***************
+*** 101,107 ****
+ POP *p;
+ MsgInfoList *mp;
+ {
+! char buf[MAXLINELEN], *cp;
+
+ fseek(p->drop, mp->offset, 0);
+ while (fgets(buf, sizeof(buf), p->drop) != NULL) {
+--- 101,108 ----
+ POP *p;
+ MsgInfoList *mp;
+ {
+! /* prevent overflow in pop_euidl */
+! static char buf[MAXLINELEN - 128], *cp;
+
+ fseek(p->drop, mp->offset, 0);
+ while (fgets(buf, sizeof(buf), p->drop) != NULL) {