Browse Source

Fix #1483: Remove Debug.Assert, because we cannot make sure that this holds always. Some records may contain the wrong length information. Nothing we can do about that.

pull/1505/head
Siegfried Pammer 7 years ago
parent
commit
56cb31a01f
  1. 1
      ILSpy.BamlDecompiler/Baml/BamlRecords.cs

1
ILSpy.BamlDecompiler/Baml/BamlRecords.cs

@ -98,7 +98,6 @@ namespace ILSpy.BamlDecompiler.Baml { @@ -98,7 +98,6 @@ namespace ILSpy.BamlDecompiler.Baml {
int size = reader.ReadEncodedInt();
ReadData(reader, size - (int)(reader.BaseStream.Position - pos));
Debug.Assert(reader.BaseStream.Position - pos == size);
}
int SizeofEncodedInt(int val) {

Loading…
Cancel
Save