]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Fixed assert-crash with auth_verbose_passwords!=no and 32bit systems.
authorTimo Sirainen <tss@iki.fi>
Sat, 26 Oct 2013 15:06:26 +0000 (18:06 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 26 Oct 2013 15:06:26 +0000 (18:06 +0300)
t_strndup() assert-crashed with size=UINT_MAX parameter.

src/auth/auth-request.c

index c47f79833867fa93a4b2e26f54de32609e3ae779..f250bfc688dbff62f40d52d7f1bbfd6bd48f4116 100644 (file)
@@ -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) {