mutt: update to 1.5.24.

This commit is contained in:
Juan RP 2015-09-01 09:36:10 +02:00
parent 6e63d60b62
commit 11cdd053b6
2 changed files with 4 additions and 36 deletions

View File

@ -1,32 +0,0 @@
This patch solves the issue raised by CVE-2014-9116.
We correctly redefine what are the whitespace characters as per RFC5322; by
doing so we prevent mutt_substrdup from being used in a way that could lead to
a segfault.
The lib.c part was written by Antonio Radici <antonio@debian.org> to prevent
crashes due to this kind of bugs from happening again.
--- lib.c.orig
+++ lib.c
@@ -815,6 +815,9 @@ char *mutt_substrdup (const char *begin,
size_t len;
char *p;
+ if (end != NULL && end < begin)
+ return NULL;
+
if (end)
len = end - begin;
else
--- lib.h.orig
+++ lib.h
@@ -98,7 +98,7 @@
on some systems */
# define SKIPWS(c) while (*(c) && isspace ((unsigned char) *(c))) c++;
-#define EMAIL_WSP " \t\r\n"
+#define EMAIL_WSP " \t\r"
/* skip over WSP as defined by RFC5322. This is used primarily for parsing
* header fields. */

View File

@ -1,7 +1,7 @@
# Template file for 'mutt'
pkgname=mutt
version=1.5.23
revision=13
version=1.5.24
revision=1
build_style=gnu-configure
configure_args="--enable-pop --enable-imap --enable-smtp --enable-hcache
--enable-gpgme --with-regex --with-idn --with-ssl --with-sasl
@ -16,8 +16,8 @@ short_desc="The Mutt Mail Client"
maintainer="Jan S. <jan.schreib@gmail.com>"
license="GPL-2"
homepage="http://www.mutt.org"
distfiles="https://bitbucket.org/${pkgname}/${pkgname}/downloads/${pkgname}-${version}.tar.gz"
checksum=3af0701e57b9e1880ed3a0dee34498a228939e854a16cdccd24e5e502626fd37
distfiles="http://ftp.mutt.org/pub/mutt/${pkgname}-${version}.tar.gz"
checksum=a292ca765ed7b19db4ac495938a3ef808a16193b7d623d65562bb8feb2b42200
# Package build options
build_options="trash sidebar"