1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00
freebsd-ports/chinese/pine4/files/patch-bz
Kris Kennaway ca5f083e1f Add a patch to address the known remote buffer overflow, from
Mike Silbersack <silby@silby.com>. Add a build- and install-time
warning about the probable existence of further remote security
problems, and remove FORBIDDEN.

Submitted by:	Mike Silbersack <silby@silby.com>
2000-10-30 01:35:21 +00:00

21 lines
669 B
Plaintext

*** pine/newmail.c.orig Mon Sep 25 15:07:01 2000
--- pine/newmail.c Tue Sep 26 15:34:24 2000
***************
*** 342,348 ****
e->from->personal, NULL),
ps_global->ttyo->screen_cols);
else
! sprintf(from + ((number > 1L) ? 18 : 6), "%s%s%s",
e->from->mailbox,
e->from->host ? "@" : "",
e->from->host ? e->from->host : "");
--- 342,349 ----
e->from->personal, NULL),
ps_global->ttyo->screen_cols);
else
! snprintf(from + ((number > 1L) ? 18 : 6), sizeof(from) - strlen(from),
! "%s%s%s",
e->from->mailbox,
e->from->host ? "@" : "",
e->from->host ? e->from->host : "");