From 56cb31a01f35c241796e8921e0948aa1e0aa76e8 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sun, 14 Apr 2019 11:24:51 +0200 Subject: [PATCH] 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. --- ILSpy.BamlDecompiler/Baml/BamlRecords.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/ILSpy.BamlDecompiler/Baml/BamlRecords.cs b/ILSpy.BamlDecompiler/Baml/BamlRecords.cs index ad4f0adbf..1ff43f079 100644 --- a/ILSpy.BamlDecompiler/Baml/BamlRecords.cs +++ b/ILSpy.BamlDecompiler/Baml/BamlRecords.cs @@ -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) {