diff options
author | shaun <shaun@FreeBSD.org> | 2006-07-03 23:42:26 +0800 |
---|---|---|
committer | shaun <shaun@FreeBSD.org> | 2006-07-03 23:42:26 +0800 |
commit | 08d9ad2e256d6f4aae3709bd499711ebaee10ccb (patch) | |
tree | 3b7acdcd02c4d99c0880232cab83744936031131 | |
parent | 760be3765742cd5ce31bc337a592d8b392a9314e (diff) | |
download | freebsd-ports-gnome-08d9ad2e256d6f4aae3709bd499711ebaee10ccb.tar.gz freebsd-ports-gnome-08d9ad2e256d6f4aae3709bd499711ebaee10ccb.tar.zst freebsd-ports-gnome-08d9ad2e256d6f4aae3709bd499711ebaee10ccb.zip |
- Add fix for recent IMAP buffer overflow vulnerability.
PR: ports/99700
Submitted by: shaun (me)
Approved by: SHIOZAKI Takehiko <st@be.to> (maintainer),
ahze (mentor)
Security: VuXML d2a43243-087b-11db-bc36-0008743bf21a
-rw-r--r-- | japanese/mutt/Makefile | 2 | ||||
-rw-r--r-- | japanese/mutt/files/patch-imap_browse.c | 27 |
2 files changed, 28 insertions, 1 deletions
diff --git a/japanese/mutt/Makefile b/japanese/mutt/Makefile index b891120e47c1..cc8c5d690d45 100644 --- a/japanese/mutt/Makefile +++ b/japanese/mutt/Makefile @@ -9,7 +9,7 @@ PORTNAME= mutt PORTVERSION= ${VERSION}.j${JP_VERSION} -#PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= japanese mail MASTER_SITES= http://www.emaillab.org/mutt/1.4/ \ http://my.reset.jp/~iwashita/mutt/distfiles/ \ diff --git a/japanese/mutt/files/patch-imap_browse.c b/japanese/mutt/files/patch-imap_browse.c new file mode 100644 index 000000000000..adbb0d3a9303 --- /dev/null +++ b/japanese/mutt/files/patch-imap_browse.c @@ -0,0 +1,27 @@ +--- imap/browse.c.orig Tue Feb 26 10:38:56 2002 ++++ imap/browse.c Sat Jul 1 20:18:02 2006 +@@ -452,7 +452,7 @@ + if (*s == '\"') + { + s++; +- while (*s && *s != '\"') ++ while (*s && *s != '\"' && n < sizeof (ns) - 1) + { + if (*s == '\\') + s++; +@@ -463,12 +463,14 @@ + s++; + } + else +- while (*s && !ISSPACE (*s)) ++ while (*s && !ISSPACE (*s) && n < sizeof (ns) - 1) + { + ns[n++] = *s; + s++; + } + ns[n] = '\0'; ++ if (n == sizeof (ns) - 1) ++ dprint (1, (debugfile, "browse_get_namespace: too long: [%s]\n", ns)); + /* delim? */ + s = imap_next_word (s); + /* delimiter is meaningless if namespace is "". Why does |