https://bugzilla.novell.com/show_bug.cgi?id=658722

https://bugzilla.novell.com/show_bug.cgi?id=658722#c0


           Summary: Mono 2.8.1 C# compiler cannot load referenced assembly
                    that is obfuscated
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.8.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: C#
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: Development
           Blocker: Yes


Description of Problem:
Compiler crash when try to load a referenced assembly that is obfuscated, here
is full stack:
Unhandled Exception: System.ArgumentOutOfRangeException: Cannot be negative.


Parameter name: length


  at System.String.Substring (Int32 startIndex, Int32 length) [0x00000] in
<filename unknown>:0 


  at Mono.CSharp.ImportedTypeDefinition.get_Name () [0x00000] in <filename
unknown>:0 


  at Mono.CSharp.MemberSpec.get_Name () [0x00000] in <filename unknown>:0 


  at Mono.CSharp.Namespace.AddType (Mono.CSharp.TypeSpec ts) [0x00000] in
<filename unknown>:0 


  at Mono.CSharp.ReflectionMetaImporter.ImportAssembly
(System.Reflection.Assembly assembly, Mono.CSharp.Namespace targetNamespace)
[0x00000] in <filename unknown>:0 


  at Mono.CSharp.RootNamespace.ImportTypes (Mono.CSharp.CompilerContext ctx)
[0x00000] in <filename unknown>:0 


  at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces
(Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0 


  at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0 


  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 


  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename
unknown>:0 

Build complete -- 1 error, 0 warnings

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to