diff options
author | shaun <shaun@FreeBSD.org> | 2006-07-03 23:44:27 +0800 |
---|---|---|
committer | shaun <shaun@FreeBSD.org> | 2006-07-03 23:44:27 +0800 |
commit | c239d274cacafebef6dfe0ccd6100eb7665c25ee (patch) | |
tree | c868429c5467b3f2dcfc296069ca5771322dbf25 /japanese/mutt-devel | |
parent | 08d9ad2e256d6f4aae3709bd499711ebaee10ccb (diff) | |
download | freebsd-ports-gnome-c239d274cacafebef6dfe0ccd6100eb7665c25ee.tar.gz freebsd-ports-gnome-c239d274cacafebef6dfe0ccd6100eb7665c25ee.tar.zst freebsd-ports-gnome-c239d274cacafebef6dfe0ccd6100eb7665c25ee.zip |
- Add fix for recent IMAP buffer overflow vulnerability.
PR: ports/99698
Submitted by: shaun (me)
Approved by: SHIOZAKI Takehiko <st@be.to> (maintainer),
ahze (mentor)
Security: VuXML d2a43243-087b-11db-bc36-0008743bf21a
Diffstat (limited to 'japanese/mutt-devel')
-rw-r--r-- | japanese/mutt-devel/Makefile | 2 | ||||
-rw-r--r-- | japanese/mutt-devel/files/patch-imap_browse.c | 27 |
2 files changed, 28 insertions, 1 deletions
diff --git a/japanese/mutt-devel/Makefile b/japanese/mutt-devel/Makefile index e2d98813cde2..7e4066166288 100644 --- a/japanese/mutt-devel/Makefile +++ b/japanese/mutt-devel/Makefile @@ -9,7 +9,7 @@ PORTNAME= mutt-devel PORTVERSION= ${VERSION}.j${JP_VERSION} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= japanese mail MASTER_SITES= http://www.emaillab.org/mutt/1.5/ \ http://my.reset.jp/~iwashita/mutt/distfiles/ \ diff --git a/japanese/mutt-devel/files/patch-imap_browse.c b/japanese/mutt-devel/files/patch-imap_browse.c new file mode 100644 index 000000000000..bb5565d56b3d --- /dev/null +++ b/japanese/mutt-devel/files/patch-imap_browse.c @@ -0,0 +1,27 @@ +--- imap/browse.c.orig Wed Nov 5 09:41:36 2003 ++++ imap/browse.c Sat Jul 1 20:47:53 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 |