aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-06-29 05:31:18 +0800
committerache <ache@FreeBSD.org>1998-06-29 05:31:18 +0800
commit1d0209d8ffd2adbb985e198e6c1bb8fcc461a67a (patch)
tree111b4ab49a7d78a59c3fe708b012ae45351c6dca /mail
parenta90e4356f59ca0802684ce23dc0b37b38ddd2450 (diff)
downloadfreebsd-ports-gnome-1d0209d8ffd2adbb985e198e6c1bb8fcc461a67a.tar.gz
freebsd-ports-gnome-1d0209d8ffd2adbb985e198e6c1bb8fcc461a67a.tar.zst
freebsd-ports-gnome-1d0209d8ffd2adbb985e198e6c1bb8fcc461a67a.zip
Prevent overflow on too long From:
Do not return stack buffer Submitted by: "Aaron D. Gifford" <agifford@infowest.com>
Diffstat (limited to 'mail')
-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) {