Bugfix update to 2.8.3

a patch has been commmitted upstream
This commit is contained in:
giovanni 2015-08-27 09:35:16 +00:00
parent 789e7c59a1
commit 02723aa6ae
3 changed files with 6 additions and 31 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.52 2015/04/28 07:24:43 giovanni Exp $
# $OpenBSD: Makefile,v 1.53 2015/08/27 09:35:16 giovanni Exp $
COMMENT-main= mail delivery agent with filtering abilities
COMMENT-utils= quota tools for the Courier mail suite
V= 2.8.1
V= 2.8.3
DISTNAME= maildrop-$V
PKGNAME-main= maildrop-$V
FULLPKGNAME-utils= courier-utils-$V
@ -91,9 +91,9 @@ CONFIGURE_ARGS+= --with-trashquota
MODULES= devel/gettext
LIB_DEPENDS= devel/libidn \
mail/courier-unicode
mail/courier-unicode>=1.3
WANTLIB = c idn unicode
WANTLIB = c idn courier-unicode
WANTLIB-main= ${WANTLIB} gdbm m stdc++ gdbm>=3 pcre>=1 courierauth
LIB_DEPENDS-main= ${LIB_DEPENDS} \

View File

@ -1,2 +1,2 @@
SHA256 (maildrop-2.8.1.tar.bz2) = 4dvcg8qSxhSwX+6oN9uubSdeEbmjVyj2jC1LgEIVO2Q=
SIZE (maildrop-2.8.1.tar.bz2) = 1989926
SHA256 (maildrop-2.8.3.tar.bz2) = WCRczXWTgnYcTNvq7703Yi4B8cSOcSUbBuoIWokM5sk=
SIZE (maildrop-2.8.3.tar.bz2) = 1992695

View File

@ -1,25 +0,0 @@
$OpenBSD: patch-libs_maildir_maildircache_c,v 1.1 2015/04/28 07:24:43 giovanni Exp $
fix a use-after-free
--- libs/maildir/maildircache.c.orig Thu Apr 23 23:58:45 2015
+++ libs/maildir/maildircache.c Fri Apr 24 00:00:09 2015
@@ -249,17 +249,18 @@ FILE *fp;
exit(1);
}
}
- free(f);
if ( fwrite(data, strlen(data), 1, fp) != 1 || fflush(fp)
|| ferror(fp))
{
fclose(fp);
unlink(f); /* Problems */
+ free(f);
fprintf(stderr, "CRIT: maildircache: Cache create failure - write error.\n");
exit(1);
}
else fclose(fp);
+ free(f);
exit(0);
}