[Mono-bugs] [Bug 65688][Cri] New - Obfuscated code and ActiveReports

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 10 Sep 2004 11:45:35 -0400 (EDT)


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 lomi@dylog.it.

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

--- shadow/65688	2004-09-10 11:45:35.000000000 -0400
+++ shadow/65688.tmp.10455	2004-09-10 11:45:35.000000000 -0400
@@ -0,0 +1,111 @@
+Bug#: 65688
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: fedora 2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lomi@dylog.it               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Obfuscated code and ActiveReports
+
+Description of Problem:
+
+Good morning.
+
+I've write a very sample web application w/ 1.1 .NET Framework.
+
+My webapp, references to three dll of the last release of ActiveReports
+.NET (3.3.0.1999):
+ActiveReports.dll
+ActiveReports.PdfExport.dll
+ActiveReports
+
+The three dll are in my webapp bin directory.
+
+Then, I've run my webapp but this error is displayed:
+
+[root@fedora2 ActiveReportsTest]# mono /usr/bin/xsp.exe --port 80
+xsp
+Adding applications '/:.'...
+Registering application:
+    Host:          any
+    Port:          any
+    Virtual path:  /
+    Physical path: /root/Desktop/ActiveReportsTest
+Listening on port: 80
+Listening on address: 0.0.0.0
+Root directory: /root/Desktop/ActiveReportsTest
+Hit Return to stop the server.
+Compat mode: the request from
+/root/Desktop/ActiveReportsTest/bin/ActiveReports. Viewer.dll to load
+System.Windows.Forms was remapped (http://www.go-mono.com/rem ap.html)
+Compat mode: the request from
+/root/Desktop/ActiveReportsTest/bin/ActiveReports. Viewer.dll to load
+System.Design was remapped (http://www.go-mono.com/remap.html )
+ 
+** (/usr/bin/xsp.exe:1847): WARNING **: unsupported calling convention
+ 
+** ERROR **: file loader.c: line 812 (mono_get_method_from_token): should
+not be  reached
+aborting...
+Aborted
+[root@fedora2 ActiveReportsTest]#
+
+Then, I've monodis one of three dll and this error is displayed:
+
+// method line 38
+    .method private static  hidebysig  specialname  rtspecialname
+           default void .cctor ()  cil managed
+    {
+        // Method begins at RVA 0x2744
+        // Code size 33 (0x21)
+        .maxstack 3
+        IL_0000:  ldnull
+        IL_0001:  stsfld  class [mscorlib]System.Collections.Hashtable
+'-c.-b3'::'-1'
+        IL_0006:  ldc.i4 224
+        IL_000b:  newarr [mscorlib]System.UInt16
+        IL_0010:  dup
+ 
+** ERROR **: Do not know how to decode tokens of type 0x0a000030
+aborting...
+        IL_0011:  ldtoken Aborted
+[root@fedora2 bin]#
+
+Then, I've disassembled the .dll w/ ildasm and I've noticed a
+PrivateImplementationDetails on ldtoken IL.
+
+I think that ActiveReports is obfuscated.
+
+Can someone help me?
+
+THANX
+
+LOMI Luigi - C# / ASP .NET LabLead
+
+
+
+Steps to reproduce the problem:
+1. create a webapp 1.1 w/ vsnet2003
+2. create an rpx
+3. export rpx to pdf
+
+Actual Results:
+File pdf not created and xsp.exe crashed
+
+Expected Results:
+File pdf created.
+
+How often does this happen? 
+always
+
+Additional Information:
+nothing