[
https://issues.apache.org/jira/browse/LOG4NET-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dominik Psenner resolved LOG4NET-348.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.2.12
> System.IndexOutOfRangeException when StackFrameLevel is greater then
> StackFrames length
> ---------------------------------------------------------------------------------------
>
> Key: LOG4NET-348
> URL: https://issues.apache.org/jira/browse/LOG4NET-348
> Project: Log4net
> Issue Type: Bug
> Components: Other
> Affects Versions: 1.2.11
> Environment: Windows 7, .Net Framework 4, MS Visual C# 2010 Express,
> hardware and operating system platform x64, application platform x86
> Reporter: Daniel PajÄ…k
> Assignee: Dominik Psenner
> Labels: exception, patch, stacktrace
> Fix For: 1.2.12
>
> Attachments: StackTracePatternConverter.cs.patch
>
> Original Estimate: 6h
> Remaining Estimate: 6h
>
> In file src\Layout\Pattern\StackTracePatternConverter.cs (lines 108-114) is:
> 108: if (stackFrameIndex > stackframes.Length)
> 109: {
> 110: stackFrameIndex--;
> 111: continue;
> 112: }
> 113:
> 114: StackFrame stackFrame = stackframes[stackFrameIndex];
> Exception is trown in line 114. To solve that problem please change line 108
> to:
> 108: if (stackFrameIndex >= stackframes.Length)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira