diff options
| author | Sam Varshavchik | 2015-06-27 13:26:50 -0400 | 
|---|---|---|
| committer | Sam Varshavchik | 2015-06-27 13:26:50 -0400 | 
| commit | 174541a2e670c0ee70fd2fb3116209f96ecc173e (patch) | |
| tree | ab31a41aca11ccad42c120ff0abe7e32fd29762f /imap | |
| parent | 67b9324b4d78f3fc5cb92e0b024c1c5cfca5a39b (diff) | |
| download | courier-libs-174541a2e670c0ee70fd2fb3116209f96ecc173e.tar.bz2 | |
Fix some bounds checking issues. Added ESMTP_PREFER_IPV6_MX setting.
Diffstat (limited to 'imap')
| -rw-r--r-- | imap/ChangeLog | 7 | ||||
| -rw-r--r-- | imap/configure.ac | 2 | ||||
| -rw-r--r-- | imap/mailboxlist.c | 4 | 
3 files changed, 10 insertions, 3 deletions
| diff --git a/imap/ChangeLog b/imap/ChangeLog index 5490efc..a2eefaf 100644 --- a/imap/ChangeLog +++ b/imap/ChangeLog @@ -1,3 +1,10 @@ +4.16.2 + +2015-06-27  Sam Varshavchik  <mrsam@courier-mta.com> + +	* imap/mailboxlist.c (match_mailbox_prep): Use strncmp instead of +	memcmp, to pacify overzealous static analysis checkers. +  2015-05-22  Sam Varshavchik  <mrsam@courier-mta.com>  	* Drop SSLv3 from TLS_CIPHER_LIST. diff --git a/imap/configure.ac b/imap/configure.ac index c912586..e399fb9 100644 --- a/imap/configure.ac +++ b/imap/configure.ac @@ -4,7 +4,7 @@ dnl  dnl Copyright 1998 - 2015 Double Precision, Inc.  See COPYING for  dnl distribution information. -AC_INIT(courier-imap, 4.16.1, [courier-users@lists.sourceforge.net]) +AC_INIT(courier-imap, 4.16.2, [courier-users@lists.sourceforge.net])  >confdefs.h  # Kill PACKAGE_ macros diff --git a/imap/mailboxlist.c b/imap/mailboxlist.c index 9bcfd7c..02f36b4 100644 --- a/imap/mailboxlist.c +++ b/imap/mailboxlist.c @@ -965,7 +965,7 @@ int callback_rc=0;  			if (isnullname)  				found_hier=mb_flags; -			else  +			else  			{  				strcat(strcat(strcpy(hiersepbuf, "\""),  					      hierchs), "\""); @@ -1018,7 +1018,7 @@ static void match_mailbox_prep(char *name)  	/* ... except that "shared" should be lowercase ... */ -	if (memcmp(name, "SHARED", 6) == 0) +	if (strncmp(name, "SHARED", 6) == 0)  		memcpy(name, "shared", 6);  } | 
