Return-Path: X-Original-To: apmail-apr-commits-archive@www.apache.org Delivered-To: apmail-apr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D89AD7B3 for ; Sun, 15 Jul 2012 21:45:18 +0000 (UTC) Received: (qmail 72575 invoked by uid 500); 15 Jul 2012 21:45:18 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 72502 invoked by uid 500); 15 Jul 2012 21:45:17 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 72494 invoked by uid 99); 15 Jul 2012 21:45:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jul 2012 21:45:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jul 2012 21:45:15 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8D5B82388962 for ; Sun, 15 Jul 2012 21:44:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1361811 - /apr/apr/trunk/crypto/apr_passwd.c Date: Sun, 15 Jul 2012 21:44:55 -0000 To: commits@apr.apache.org From: sf@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120715214455.8D5B82388962@eris.apache.org> Author: sf Date: Sun Jul 15 21:44:55 2012 New Revision: 1361811 URL: http://svn.apache.org/viewvc?rev=1361811&view=rev Log: Increase the buffer size for the hashed string sha512-crypt with custom rounds= prefix needs 115 bytes plus length of the number of rounds string to store the resulting hash. An usable buffer size of 119 limited this to 9999 rounds. Use 200 to allow for future hash algorithms with longer string lengths (e.g. due to longer salt). Modified: apr/apr/trunk/crypto/apr_passwd.c Modified: apr/apr/trunk/crypto/apr_passwd.c URL: http://svn.apache.org/viewvc/apr/apr/trunk/crypto/apr_passwd.c?rev=1361811&r1=1361810&r2=1361811&view=diff ============================================================================== --- apr/apr/trunk/crypto/apr_passwd.c (original) +++ apr/apr/trunk/crypto/apr_passwd.c Sun Jul 15 21:44:55 2012 @@ -99,7 +99,7 @@ static void crypt_mutex_unlock() APR_DECLARE(apr_status_t) apr_password_validate(const char *passwd, const char *hash) { - char sample[120]; + char sample[200]; #if !defined(WIN32) && !defined(BEOS) && !defined(NETWARE) char *crypt_pw; #endif