Return-Path: X-Original-To: apmail-logging-commits-archive@minotaur.apache.org Delivered-To: apmail-logging-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 299EEDC82 for ; Tue, 24 Jul 2012 06:27:16 +0000 (UTC) Received: (qmail 70037 invoked by uid 500); 24 Jul 2012 06:27:16 -0000 Delivered-To: apmail-logging-commits-archive@logging.apache.org Received: (qmail 69867 invoked by uid 500); 24 Jul 2012 06:27:11 -0000 Mailing-List: contact commits-help@logging.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@logging.apache.org Delivered-To: mailing list commits@logging.apache.org Received: (qmail 68469 invoked by uid 99); 24 Jul 2012 06:27:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2012 06:27:08 +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; Tue, 24 Jul 2012 06:27:07 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D380223888EA; Tue, 24 Jul 2012 06:26:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1364911 - /logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs Date: Tue, 24 Jul 2012 06:26:48 -0000 To: commits@logging.apache.org From: dpsenner@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120724062648.D380223888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dpsenner Date: Tue Jul 24 06:26:48 2012 New Revision: 1364911 URL: http://svn.apache.org/viewvc?rev=1364911&view=rev Log: LOG4NET-348 fix System.IndexOutOfRangeException in StackTracePatternConverter whenever m_stackFrameLevel is bigger than the retrieved StackFrames Modified: logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs Modified: logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs?rev=1364911&r1=1364910&r2=1364911&view=diff ============================================================================== --- logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs (original) +++ logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs Tue Jul 24 06:26:48 2012 @@ -105,7 +105,7 @@ namespace log4net.Layout.Pattern int stackFrameIndex = m_stackFrameLevel - 1; while (stackFrameIndex >= 0) { - if (stackFrameIndex > stackframes.Length) + if (stackFrameIndex >= stackframes.Length) { stackFrameIndex--; continue; @@ -147,4 +147,4 @@ namespace log4net.Layout.Pattern #endregion Private Static Fields } } -#endif \ No newline at end of file +#endif