Fix for IndexOutOfRangeException in ILReader.ReadOpCode(), part 2 (#84)
* Add failing test * Fix OperandType.ShortInlineI handling * Remove invalid comment
This commit is contained in:
committed by
Ben Adams
parent
adef3aa266
commit
9b85871130
@@ -72,6 +72,7 @@ namespace System.Diagnostics.Internal
|
||||
|
||||
case OperandType.ShortInlineBrTarget:
|
||||
case OperandType.ShortInlineVar:
|
||||
case OperandType.ShortInlineI:
|
||||
inlineLength = 1;
|
||||
break;
|
||||
|
||||
@@ -97,7 +98,6 @@ namespace System.Diagnostics.Internal
|
||||
break;
|
||||
|
||||
default:
|
||||
// Can return System.ArgumentException : Unexpected operand type xxx
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user