logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpsen...@apache.org
Subject svn commit: r1364911 - /logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs
Date Tue, 24 Jul 2012 06:26:48 GMT
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



Mime
View raw message