-
-
Save atsushieno/d6267aeb19640cdfa99b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs b/symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs | |
index 2db0419..9f3bf0c 100644 | |
--- a/symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs | |
+++ b/symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs | |
@@ -81,6 +81,8 @@ namespace Mono.Cecil.Mdb { | |
{ | |
var locals = entry.GetLocals (); | |
foreach (var local in locals) { | |
+ if (body.Variables.Count <= local.Index) | |
+ continue; | |
var variable = body.Variables [local.Index]; | |
variable.Name = local.Name; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment