Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.65 2013/02/06 23:22:41 jperkin Exp $
# $NetBSD: Makefile,v 1.68 2014/03/05 12:11:46 obache Exp $
DISTNAME= cue-snap-20100426
DISTNAME= cue-snap-20140217
PKGNAME= ${DISTNAME:S/snap-//}
PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/cue/snap/
@@ -16,6 +15,8 @@ CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q}
CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
INSTALLATION_DIRS+= bin share/doc/cue share/examples/cue
CPPFLAGS.SunOS+= -Du_int8_t=uint8_t
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cue ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/sample.cuerc \

View File

@@ -1,8 +1,9 @@
$NetBSD: distinfo,v 1.34 2011/12/18 11:33:42 obache Exp $
$NetBSD: distinfo,v 1.35 2014/03/05 12:11:46 obache Exp $
SHA1 (cue-snap-20100426.tar.gz) = 37f758bb65a9b5e6089b23aabd655d2fdadc76e2
RMD160 (cue-snap-20100426.tar.gz) = cb908dc73c662ee22811cc4c09a64d81684eedea
Size (cue-snap-20100426.tar.gz) = 256759 bytes
SHA1 (cue-snap-20140217.tar.gz) = 44d49f978074cd605b76f2bfd2271912926d3447
RMD160 (cue-snap-20140217.tar.gz) = 0f7dad95b319e8c5cc19c6b656076ee6f2c3e22a
Size (cue-snap-20140217.tar.gz) = 258218 bytes
SHA1 (patch-aa) = c83665ce01f9a56652a3ad650910f9b810cae4b4
SHA1 (patch-configure.in) = 3f7c2fe9ce3ab851d06cc6d4e31e8c3bdde6d709
SHA1 (patch-message.c) = bd58dfbdb560ec231a6505c021a8e7a33d4c8503
SHA1 (patch-pgp.c) = 88f370cf04d8806c2df02653f7857460151c93f6

View File

@@ -0,0 +1,35 @@
$NetBSD: patch-message.c,v 1.1 2014/03/05 12:11:46 obache Exp $
Fixes a crash on a mail with many headers.
2014-02-24 Sent upstream.
--- message.c.orig 2014-02-03 14:27:20.000000000 +0000
+++ message.c
@@ -663,7 +663,7 @@ message_multipart_next(struct filedb *fd
fdb->flags |= FDB_INLINE;
i = fdb->hdrs + nfdb->hdrs;
if (i > fdb->hdr_size) {
- p = realloc(fdb->hdr, i);
+ p = realloc(fdb->hdr, sizeof(*p) * i);
if (!p)
abort();
fdb->hdr = p;
@@ -739,12 +739,17 @@ message_header(struct filedb *fdb)
fdb->hdr = malloc(sizeof(struct header) * fdb->hdr_size);
n = message_header_readbuf(fdb, fdb->hdr, fdb->hdr_size);
if (n > fdb->hdr_size) {
+ int n2;
+
p = realloc(fdb->hdr, sizeof(struct header) * n);
if (!p)
abort();
fdb->hdr = p;
- n = message_header_readbuf(fdb, fdb->hdr + fdb->hdr_size,
+ n2 = message_header_readbuf(fdb, fdb->hdr + fdb->hdr_size,
n - fdb->hdr_size);
+ if (n != n2 + fdb->hdr_size)
+ abort();
+ fdb->hdr_size = n;
}
fdb->hdrs = n;
if (fdb->flags & FDB_MULTIPART) {