[Mono-bugs] [Bug 79699][Nor] New - gacutil throws System.IndexOutOfRangeException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Oct 19 12:24:25 EDT 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 sebastian.noack at gmail.com.

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

--- shadow/79699	2006-10-19 12:24:25.000000000 -0400
+++ shadow/79699.tmp.4059	2006-10-19 12:24:25.000000000 -0400
@@ -0,0 +1,24 @@
+Bug#: 79699
+Product: Mono: Tools
+Version: 1.0
+OS: 
+OS Details: Gentoo Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: tools
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: sebastian.noack at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: gacutil throws System.IndexOutOfRangeException
+
+When you call `gacutil ""` or `gacutil -f ""`  or `gacutil "" -i` or any
+othe variant where an empty-string is passed to gacutil, I get a
+System.IndexOutOfRangeException.
+
+It is because of the IsSwitch method access the first charecter of the
+argument without checking it length before. I have provided a patch therfore.


More information about the mono-bugs mailing list