aboutsummaryrefslogtreecommitdiffstats
path: root/editors/emacs
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2005-02-14 23:32:30 +0800
committernobutaka <nobutaka@FreeBSD.org>2005-02-14 23:32:30 +0800
commit3b83e592e9046f1a835e4e73637ac007d9155f11 (patch)
treeb1a907dc58d1a5dc07c7b0b79a3eeddb1df521ee /editors/emacs
parentf60d3eaa2cf75ccb71d97b1159f8dd02f2243ccd (diff)
downloadfreebsd-ports-gnome-3b83e592e9046f1a835e4e73637ac007d9155f11.tar.gz
freebsd-ports-gnome-3b83e592e9046f1a835e4e73637ac007d9155f11.tar.zst
freebsd-ports-gnome-3b83e592e9046f1a835e4e73637ac007d9155f11.zip
Fix format string vulnerability in the movemail utility.
Security: CAN-2005-0100 Security: http://www.vuxml.org/freebsd/3e3c860d-7dae-11d9-a9e7-0001020eed82.html Security: Malicious POP3 servers can execute arbitrary code.
Diffstat (limited to 'editors/emacs')
-rw-r--r--editors/emacs/Makefile2
-rw-r--r--editors/emacs/files/patch-lib-src:movemail.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/editors/emacs/Makefile b/editors/emacs/Makefile
index 862df586a859..31853c7fe89b 100644
--- a/editors/emacs/Makefile
+++ b/editors/emacs/Makefile
@@ -7,7 +7,7 @@
PORTNAME= emacs
PORTVERSION= 21.3
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= editors ipv6
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/editors/emacs/files/patch-lib-src:movemail.c b/editors/emacs/files/patch-lib-src:movemail.c
new file mode 100644
index 000000000000..c47286937302
--- /dev/null
+++ b/editors/emacs/files/patch-lib-src:movemail.c
@@ -0,0 +1,11 @@
+--- lib-src/movemail.c.orig Mon Feb 14 11:29:49 2005
++++ lib-src/movemail.c Mon Feb 14 11:33:06 2005
+@@ -787,7 +787,7 @@
+ mbx_delimit_begin (mbf);
+ if (pop_retr (server, i, mbf) != OK)
+ {
+- error (Errmsg, 0, 0);
++ error ("%s", Errmsg, 0);
+ close (mbfi);
+ return (1);
+ }