[Mono-bugs] [Bug 80090][Cos] New - Bug handling fromat strings in cmd-line arguments

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Nov 29 19:16:39 EST 2006


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 ph_lachi at yahoo.de.

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

--- shadow/80090	2006-11-29 19:16:39.000000000 -0500
+++ shadow/80090.tmp.13002	2006-11-29 19:16:39.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 80090
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: Ubuntu 6.10
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: ph_lachi at yahoo.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Bug handling fromat strings in cmd-line arguments
+
+Hi all!
+
+Description of Problem: following code snippet
+ class MainClass
+ {
+  public static void Main(string[] args)
+  {
+   String new_string = string.Format("foo {0}", args[0]);
+   Console.WriteLine(new_string); 
+  }
+ }
+
+If you compile the project and run it with the following commandline
+options "##.#" this occurs:
+
+Unhandled Exception: System.IndexOutOfRangeException: Array index is out of
+range.
+  at testing.MainClass.Main (System.String[] args) [0x00000]
+
+
+Additional Information:
+I am currently trying to analyse this problem in my bachelor thesis
+including a security analysis of mono components and will publish the
+results at around may 2007 when the thesis is finished.


More information about the mono-bugs mailing list