Return-Path: Delivered-To: apmail-apr-bugs-archive@www.apache.org Received: (qmail 49629 invoked from network); 25 Aug 2008 08:25:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Aug 2008 08:25:43 -0000 Received: (qmail 98984 invoked by uid 500); 25 Aug 2008 08:25:41 -0000 Delivered-To: apmail-apr-bugs-archive@apr.apache.org Received: (qmail 98954 invoked by uid 500); 25 Aug 2008 08:25:41 -0000 Mailing-List: contact bugs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apr.apache.org Delivered-To: mailing list bugs@apr.apache.org Received: (qmail 98943 invoked by uid 99); 25 Aug 2008 08:25:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 01:25:41 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 08:24:52 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 55C5E234C1B1; Mon, 25 Aug 2008 01:25:22 -0700 (PDT) From: bugzilla@apache.org To: bugs@apr.apache.org Subject: DO NOT REPLY [Bug 45679] SHA1 passwords starting with {SHA} don't work and cause a minor buffer overrun X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: APR X-Bugzilla-Component: APR-util X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bojan@rexursive.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@apr.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20080825082522.55C5E234C1B1@brutus.apache.org> Date: Mon, 25 Aug 2008 01:25:22 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=45679 Bojan Smojver changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bojan@rexursive.com --- Comment #1 from Bojan Smojver 2008-08-25 01:25:21 PST --- I don't think this patch is correct. I think we should actually do this (note that there is a tab in the first patched line, hence the diff): Index: crypto/apr_sha1.c =================================================================== --- crypto/apr_sha1.c (revision 685796) +++ crypto/apr_sha1.c (working copy) @@ -352,7 +352,8 @@ apr_byte_t digest[APR_SHA1_DIGESTSIZE]; if (strncmp(clear, APR_SHA1PW_ID, APR_SHA1PW_IDLEN) == 0) { - clear += APR_SHA1PW_IDLEN; + clear += APR_SHA1PW_IDLEN; + len -= APR_SHA1PW_IDLEN; } apr_sha1_init(&context); Does the above work for you? -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org For additional commands, e-mail: bugs-help@apr.apache.org