1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-07 22:58:11 +00:00
freebsd-ports/mail/popper/files/patch-aj
Andrey A. Chernov 61b9aa4259 Prevent overflow on too long From:
Do not return stack buffer
Submitted by: "Aaron D. Gifford" <agifford@infowest.com>
1998-06-28 21:31:18 +00:00

21 lines
545 B
Plaintext

*** 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) {