procmail: update to 3.24.

This commit is contained in:
Leah Neukirchen 2022-11-16 23:47:05 +01:00
parent b2197f0a30
commit 2ebdab7ef4
3 changed files with 4 additions and 49 deletions

View file

@ -1,23 +0,0 @@
From: Tavis Ormandy
Subject: formail heap overflow. CVE-2014-3618
Bug-Debian: http://bugs.debian.org/704675
Bug-Debian: http://bugs.debian.org/760443
X-Debian-version: 3.22-22
--- a/src/formisc.c
+++ b/src/formisc.c
@@ -84,12 +84,11 @@
case '"':*target++=delim='"';start++;
}
;{ int i;
- do
+ while(*start)
if((i= *target++= *start++)==delim) /* corresponding delimiter? */
break;
else if(i=='\\'&&*start) /* skip quoted character */
*target++= *start++;
- while(*start); /* anything? */
}
hitspc=2;
}

View file

@ -1,17 +0,0 @@
From: Santiago Vila <sanvila@debian.org>
Subject: Fix heap-based buffer overflow in loadbuf()
Bug-Debian: http://bugs.debian.org/876511
X-Debian-version: 3.22-26
--- a/src/formisc.c
+++ b/src/formisc.c
@@ -103,7 +103,7 @@
}
/* append to buf */
void loadbuf(text,len)const char*const text;const size_t len;
-{ if(buffilled+len>buflen) /* buf can't hold the text */
+{ while(buffilled+len>buflen) /* buf can't hold the text */
buf=realloc(buf,buflen+=Bsize);
tmemmove(buf+buffilled,text,len);buffilled+=len;
}

View file

@ -1,22 +1,17 @@
# Template file for 'procmail'
pkgname=procmail
version=3.22
revision=3
version=3.24
revision=1
hostmakedepends="opensmtpd"
depends="virtual?smtp-server"
short_desc="Autonomous mail processor"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later, Artistic-1.0-cl8"
homepage="http://www.procmail.org"
distfiles="https://fossies.org/linux/misc/old/procmail-${version}.tar.gz"
checksum=087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117
distfiles="https://github.com/BuGlessRB/procmail/archive/refs/tags/v${version}.tar.gz"
checksum=514ea433339783e95df9321e794771e4887b9823ac55fdb2469702cf69bd3989
nocross="./autoconf: line 1396: ./_autotst: No such file or directory"
post_extract() {
cd $wrksrc
sed -i s/getline/procmail_getline/g src/*
}
do_build() {
make ${makejobs} CC="$CC" CFLAGS0="${CFLAGS} ${LDFLAGS}" LOCKINGTEST=100
}