mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
HandleSimpleArrayInitializer multiplies the array dimensions to size the list it collects elements into. The dimensions come from the input assembly and need not multiply within int range, and ICSharpCode.Decompiler is built with CheckForOverflowUnderflow, so an implausible pair of dimensions aborted decompilation of the whole member. The product is only a capacity hint, so it can saturate. Found by fuzzing nuget.org; reproduces on obfuscated assemblies. Assisted-by: Claude:claude-opus-5[1m]:Claude Codepull/3959/head
2 changed files with 13 additions and 1 deletions
Loading…
Reference in new issue