From: Timo Sirainen Date: Sat, 26 Oct 2013 15:06:26 +0000 (+0300) Subject: auth: Fixed assert-crash with auth_verbose_passwords!=no and 32bit systems. X-Git-Tag: 2.2.7~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3e719eb9ced56bb9abbe291af95ac87fa36bbc8;p=thirdparty%2Fdovecot%2Fcore.git auth: Fixed assert-crash with auth_verbose_passwords!=no and 32bit systems. t_strndup() assert-crashed with size=UINT_MAX parameter. --- diff --git a/src/auth/auth-request.c b/src/auth/auth-request.c index c47f798338..f250bfc688 100644 --- a/src/auth/auth-request.c +++ b/src/auth/auth-request.c @@ -1781,7 +1781,7 @@ static void auth_request_append_password(struct auth_request *request, string_t *str) { const char *p, *log_type = request->set->verbose_passwords; - unsigned int max_len = UINT_MAX; + unsigned int max_len = 1024; p = strchr(log_type, ':'); if (p != NULL) {