[Mono-bugs] [Bug 36319][Nor] New - MemoryStream doesn't handle position > length case

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 5 Jan 2003 12:00:34 -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 rykr@bellsouth.net.

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

--- shadow/36319	Sun Jan  5 12:00:34 2003
+++ shadow/36319.tmp.27439	Sun Jan  5 12:00:34 2003
@@ -0,0 +1,40 @@
+Bug#: 36319
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rykr@bellsouth.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MemoryStream doesn't handle position > length case
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+Setting position > length of memoryStream truncates position to equal 
+length.  
+
+Steps to reproduce the problem:
+1. Set MemoryStream object to length 0
+2. Set position of stream to 4
+3. Write 2 bytes to stream
+4. Check length 
+
+Actual Results:
+Length = 3
+
+Expected Results:
+Length should be equal to 6
+
+How often does this happen? 
+Everytime
+
+Additional Information: