Bug 3135 - System.ArgumentOutOfRangeException in HttpWebRequest.Create() incl. Bugfix
Summary: System.ArgumentOutOfRangeException in HttpWebRequest.Create() incl. Bugfix
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: 2.10.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-01-30 01:50 UTC by Nicolas Pöhlmann
Modified: 2012-10-23 17:50 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Fix for issue (764 bytes, patch)
2012-01-30 01:50 UTC, Nicolas Pöhlmann
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Nicolas Pöhlmann 2012-01-30 01:50:26 UTC
Created attachment 1289 [details]
Fix for issue

Changes in the "System.Net\WebRequest.cs"-File in Mono 2.10.8 introduced a bug at HttpWebRequest.Create()-Function:

System.ArgumentOutOfRangeException: Cannot be negative.
Parameter name: startIndex

At least on Gentoo and Fedora this exception is thrown.

The introduced bypass.Remove()-Function isn't audited well enough. It's missing a bypass.Contains-Check.

On both linux distributions there is no "*.local" in the "NO_PROXY"-environment variable.
Comment 1 Marek Safar 2012-06-15 09:51:04 UTC
Already fixed in master