From: Wietse Venema Date: Fri, 2 Mar 2012 05:00:00 +0000 (-0500) Subject: postfix-2.8.9 X-Git-Tag: v2.8.9^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f42575b3c9fab260588ecda8c0f5b0b592d12485;p=thirdparty%2Fpostfix.git postfix-2.8.9 --- diff --git a/postfix/HISTORY b/postfix/HISTORY index 71ac5fbaf..2982dc1c8 100644 --- a/postfix/HISTORY +++ b/postfix/HISTORY @@ -16747,3 +16747,22 @@ Apologies for any names omitted. have been updated when it was re-purposed to handle DSN SUCCESS notifications. Problem reported by Sabahattin Gucukoglu. File: bounce/bounce_trace_service.c. + +20120202 + + Bugfix (introduced: Postfix 2.3): the "change header" milter + request could replace the wrong header. A long header name + could match a shorter one, because a length check was done + on the wrong string. Reported by Vladimir Vassiliev. File: + cleanup/cleanup_milter.c. + +20120214 + + Bugfix (introduced: Postfix 2.4): extraneous null assignment + caused core dump when postlog emitted the "usage" message. + Reported by Kant (fnord.hammer). File: postlog/postlog.c. + +20120217 + + Cleanup: missing #include statement for bugfix code added + 20111226. File: local/unknown.c. diff --git a/postfix/src/cleanup/cleanup_milter.c b/postfix/src/cleanup/cleanup_milter.c index e29feebed..4877611fe 100644 --- a/postfix/src/cleanup/cleanup_milter.c +++ b/postfix/src/cleanup/cleanup_milter.c @@ -840,8 +840,7 @@ static off_t cleanup_find_header_start(CLEANUP_STATE *state, ssize_t index, /* Reset the saved PTR record and update last_type. */ ; else if ((header_label == 0 || (strncasecmp(header_label, STR(buf), len) == 0 - && (IS_SPACE_TAB(STR(buf)[len]) - || STR(buf)[len] == ':'))) + && (strlen(header_label) == len))) && --index == 0) { /* If we have a saved PTR record, it points to start of header. */ break; diff --git a/postfix/src/global/mail_version.h b/postfix/src/global/mail_version.h index cc33bb8ec..6b7abb1e1 100644 --- a/postfix/src/global/mail_version.h +++ b/postfix/src/global/mail_version.h @@ -20,8 +20,8 @@ * Patches change both the patchlevel and the release date. Snapshots have no * patchlevel; they change the release date only. */ -#define MAIL_RELEASE_DATE "20120201" -#define MAIL_VERSION_NUMBER "2.8.8" +#define MAIL_RELEASE_DATE "20120302" +#define MAIL_VERSION_NUMBER "2.8.9" #ifdef SNAPSHOT # define MAIL_VERSION_DATE "-" MAIL_RELEASE_DATE diff --git a/postfix/src/local/Makefile.in b/postfix/src/local/Makefile.in index 291664b5a..4cd7eadb2 100644 --- a/postfix/src/local/Makefile.in +++ b/postfix/src/local/Makefile.in @@ -590,6 +590,7 @@ unknown.o: ../../include/argv.h unknown.o: ../../include/attr.h unknown.o: ../../include/been_here.h unknown.o: ../../include/bounce.h +unknown.o: ../../include/defer.h unknown.o: ../../include/deliver_pass.h unknown.o: ../../include/deliver_request.h unknown.o: ../../include/delivered_hdr.h diff --git a/postfix/src/local/unknown.c b/postfix/src/local/unknown.c index 57e49af84..c98cac725 100644 --- a/postfix/src/local/unknown.c +++ b/postfix/src/local/unknown.c @@ -72,6 +72,7 @@ #include #include #include +#include /* Application-specific. */ diff --git a/postfix/src/postlog/postlog.c b/postfix/src/postlog/postlog.c index 000ff70d6..e2a7877d5 100644 --- a/postfix/src/postlog/postlog.c +++ b/postfix/src/postlog/postlog.c @@ -206,7 +206,6 @@ int main(int argc, char **argv) if (isatty(STDERR_FILENO)) msg_vstream_init(tag, VSTREAM_ERR); msg_syslog_init(tag, LOG_PID, LOG_FACILITY); - tag = 0; /* * Parse switches.