[Mono-bugs] [Bug 54201][Wis] New - HttpUtil.UrlDecodeToBytes throws ArgumentOutOfRangeException("count")

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 11 Feb 2004 08:37:01 -0500 (EST)


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 malekith@pld-linux.org.

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

--- shadow/54201	2004-02-11 08:37:01.000000000 -0500
+++ shadow/54201.tmp.21790	2004-02-11 08:37:01.000000000 -0500
@@ -0,0 +1,29 @@
+Bug#: 54201
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: malekith@pld-linux.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: HttpUtil.UrlDecodeToBytes throws ArgumentOutOfRangeException("count")
+
+in mono-0.30, file HttpUtility.cs:501 you can see:
+
+
+            if (count < 0 || offset <= len - count)
+                throw new ArgumentOutOfRangeException("count");
+                                                                          
+                         
+While it should be:
+
+            if (count < 0 || offset > len - count)
+                throw new ArgumentOutOfRangeException("count");