[Mono-bugs] [Bug 25071] New - Converting from base in System.Convert doesn't throw exception
21 May 2002 18:36:52 -0000
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 firstname.lastname@example.org.
--- shadow/25071 Tue May 21 14:36:52 2002
+++ shadow/25071.tmp.12726 Tue May 21 14:36:52 2002
@@ -0,0 +1,45 @@
+Product: Mono/Class Libraries
+OS Details: win2k/cygwin
+Summary: Converting from base in System.Convert doesn't throw exception
+Description of Problem:
+When converting strings with for example Convert.ToInt32 from desired base
+there can be an invalid string without FormatException. The specification
+doesn't say anything about FormatException but csc throws FormatException
+Also if you put in a string in the wrong format for example "1239" to be
+converted from base 8 it's interpreted as "1241".
+Steps to reproduce the problem:
+1. Run the code
+How often does this happen?
+All the time
+"1239" is interpreted as "1241" which would mean that the overflow from
+the last digit (9) is added to the second last digit (3).