From b5d2fd1694e870eaea5f165646e3ee3715df66fb Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 30 Dec 2023 00:15:06 +0100 Subject: [PATCH] Fix ILSpy not being able to open ZIP files/VSIX that contain a bundle signature. --- ICSharpCode.ILSpyX/LoadedPackage.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ICSharpCode.ILSpyX/LoadedPackage.cs b/ICSharpCode.ILSpyX/LoadedPackage.cs index 8d0d99f90..1f8e9be36 100644 --- a/ICSharpCode.ILSpyX/LoadedPackage.cs +++ b/ICSharpCode.ILSpyX/LoadedPackage.cs @@ -123,6 +123,10 @@ namespace ICSharpCode.ILSpyX view = null; // don't dispose the view, we're still using it in the bundle entries return result; } + catch (InvalidDataException) + { + return null; + } finally { view?.Dispose();