[Mono-bugs] [Bug 71189][Wis] New - Cecil fails to decode Mono.Security.dll

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 11 Jan 2005 22:03:36 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by sebastien@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=71189

--- shadow/71189	2005-01-11 22:03:36.000000000 -0500
+++ shadow/71189.tmp.28288	2005-01-11 22:03:36.000000000 -0500
@@ -0,0 +1,92 @@
+Bug#: 71189
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Mono.Cecil
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sebastien@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Cecil fails to decode Mono.Security.dll
+
+Description of Problem:
+Cecil, using the sample application, fails to decode the assembly
+Mono.Security.dll.
+
+Steps to reproduce the problem:
+mono --debug Main.exe ~/svn/mcs/class/lib/default/Mono.Security.dll
+
+Actual Results:
+System.IO.EndOfStreamException: Failed to read past end of stream.
+in [0x0006d] System.IO.BinaryReader:FillBuffer (int)
+in [0x00002] (at
+/home/poupou/svn/mcs/class/corlib/System.IO/BinaryReader.cs:445)
+System.IO.BinaryReader:ReadUInt16 ()
+in [0x0000d] (at
+/home/poupou/svn/cecil/lib/Mono.Cecil.Metadata/MetadataRowReader.cs:149)
+Mono.Cecil.Metadata.MetadataRowReader:ReadByIndexSize (int)
+in [0x0002e] (at
+/home/poupou/svn/cecil/lib/Mono.Cecil.Metadata/MetadataRowReader.cs:527)
+Mono.Cecil.Metadata.MetadataRowReader:Visit
+(Mono.Cecil.Metadata.NestedClassRow)
+in [0x00002] (at
+/home/poupou/svn/cecil/lib/Mono.Cecil.Metadata/NestedClass.cs:67)
+Mono.Cecil.Metadata.NestedClassRow:Accept
+(Mono.Cecil.Metadata.IMetadataRowVisitor)
+in [0x00016] (at
+/home/poupou/svn/cecil/lib/Mono.Cecil.Metadata/RowCollection.cs:87)
+Mono.Cecil.Metadata.RowCollection:Accept
+(Mono.Cecil.Metadata.IMetadataRowVisitor)
+in [0x00013] (at
+/home/poupou/svn/cecil/lib/Mono.Cecil.Metadata/NestedClass.cs:36)
+Mono.Cecil.Metadata.NestedClassTable:Accept
+(Mono.Cecil.Metadata.IMetadataTableVisitor)
+in [0x00016] (at
+/home/poupou/svn/cecil/lib/Mono.Cecil.Metadata/TableCollection.cs:117)
+Mono.Cecil.Metadata.TableCollection:Accept
+(Mono.Cecil.Metadata.IMetadataTableVisitor)
+in [0x00018] (at
+/home/poupou/svn/cecil/lib/Mono.Cecil.Metadata/MetadataReader.cs:223)
+Mono.Cecil.Metadata.MetadataReader:Terminate (Mono.Cecil.Metadata.MetadataRoot)
+in [0x00021] (at
+/home/poupou/svn/cecil/lib/Mono.Cecil.Metadata/MetadataRoot.cs:49)
+Mono.Cecil.Metadata.MetadataRoot:Accept (Mono.Cecil.Metadata.IMetadataVisitor)
+in [0x002b3] (at
+/home/poupou/svn/cecil/lib/Mono.Cecil.Binary/ImageReader.cs:237)
+Mono.Cecil.Binary.ImageReader:Visit (Mono.Cecil.Binary.CLIHeader)
+in [0x00002] (at
+/home/poupou/svn/cecil/lib/Mono.Cecil.Binary/CLIHeader.cs:110)
+Mono.Cecil.Binary.CLIHeader:Accept (Mono.Cecil.Binary.IBinaryVisitor)
+in [0x0003e] (at /home/poupou/svn/cecil/lib/Mono.Cecil.Binary/Image.cs:100)
+Mono.Cecil.Binary.Image:Accept (Mono.Cecil.Binary.IBinaryVisitor)
+in [0x00019] (at
+/home/poupou/svn/cecil/lib/Mono.Cecil.Binary/ImageReader.cs:31)
+Mono.Cecil.Binary.ImageReader:.ctor (string)
+in [0x00001] (at
+/home/poupou/svn/cecil/lib/Mono.Cecil/AssemblyFactory.cs:28)
+Mono.Cecil.AssemblyFactory:GetAssembly (string)
+in [0x00031] (at /home/poupou/svn/cecil/feed/Cecil.Feed/Main.cs:109)
+Cecil.Feed.TreeViewDemo:PopulateStore ()
+in [0x00035] (at /home/poupou/svn/cecil/feed/Cecil.Feed/Main.cs:38)
+Cecil.Feed.TreeViewDemo:.ctor (string)
+in [0x00016] (at /home/poupou/svn/cecil/feed/Cecil.Feed/Main.cs:137)
+Cecil.Feed.TreeViewDemo:Main (string[])
+
+
+Expected Results:
+No exception.
+
+
+How often does this happen? 
+Always.
+
+
+Additional Information:
+Both the mono runtime and Mono.Security.dll are from SVN HEAD.