[Mono-bugs] [Bug 76074][Wis] New - Convert.FromBase64String throws exception on empty string

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 12 17:41:57 EDT 2005


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 nlassonde at versora.com.

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

--- shadow/76074	2005-09-12 17:41:57.000000000 -0400
+++ shadow/76074.tmp.26111	2005-09-12 17:41:57.000000000 -0400
@@ -0,0 +1,25 @@
+Bug#: 76074
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: NLassonde at Versora.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Convert.FromBase64String throws exception on empty string
+
+I don't know if this really is a bug or not; On MS' .Net, calling
+Convert.FromBase64String with an empty string will also return an empty
+string. However, the documentation says that a FormatException will be
+thrown if the length is less than 4, which last I checked, 0 is less than
+4. Mono follows the documentation and throws an exception on empty strings.
+While holding to the documentation is good, so is code portability with
+MS's .Net.


More information about the mono-bugs mailing list