[Mono-bugs] [Bug 45469][Min] Changed - Bad pointer arithmetic in System.Windows.Froms.SystemInformation._gethostname method

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 7 Apr 2004 06:30:10 -0400 (EDT)


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 lluis@ximian.com.

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

--- shadow/45469	2003-06-25 17:43:16.000000000 -0400
+++ shadow/45469.tmp.25548	2004-04-07 06:30:10.000000000 -0400
@@ -1,17 +1,17 @@
 Bug#: 45469
-Product: Mono/Class Libraries
+Product: Mono: Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
-Severity: 
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
 Priority: Minor
 Component: System
-AssignedTo: mono-bugs@ximian.com                            
+AssignedTo: sumadevi@novell.com                            
 ReportedBy: barce@frlp.utn.edu.ar               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
 Summary: Bad pointer arithmetic in System.Windows.Froms.SystemInformation._gethostname method
@@ -43,6 +43,9 @@
   while (*q != 0 && ((int)(q-p) < 256))
 
 (p-q) is always a negative number so it's always less than 256, the correct
 way to express the length of the string is (q-p).
 This problem manifests only when the host name length is greather than 256
  bytes, which is not common.
+
+------- Additional Comments From lluis@ximian.com  2004-04-07 06:30 -------
+Fix applied.