[Mono-bugs] [Bug 36038][Wis] New - UrlEncodeToBytes() bug

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
22 Dec 2002 07:37:41 -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 juancri@tagnet.org.

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

--- shadow/36038	Sun Dec 22 02:37:41 2002
+++ shadow/36038.tmp.31814	Sun Dec 22 02:37:41 2002
@@ -0,0 +1,33 @@
+Bug#: 36038
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: juancri@tagnet.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: UrlEncodeToBytes() bug
+
+UrlEncodeToBytes (byte[], int, int) has a problem.
+
+File: mcs/class/System.Web/System.Web/HttpUtility.cs
+Line: 592
+
+   if (count < 0 || offset <= len - count)
+
+should be
+
+   if (count < 0 || offset < len - count)
+
+because there is a problem calling UrlEncode("something");
+
+Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out 
+of range