[Mono-bugs] [Bug 79944][Nor] Changed - UnmanagedType.ByValTStr problems

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 2 00:09:56 EST 2007


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 miguel at ximian.com.

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

--- shadow/79944	2006-11-16 12:43:32.000000000 -0500
+++ shadow/79944.tmp.31095	2007-01-02 00:09:56.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 79944
 Product: Mono: Runtime
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Normal
 Component: interop
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: toshok at ximian.com               
 QAContact: mono-bugs at ximian.com
@@ -52,6 +52,19 @@
 Created an attachment (id=18089)
 the C file to turn into a .so
 
 
 ------- Additional Comments From toshok at ximian.com  2006-11-16 12:43 -------
 not really a wishlist item :)
+
+------- Additional Comments From miguel at ximian.com  2007-01-02 00:09 -------
+Fixed this bug.
+
+Notice that the test from 78722 is broken though, because it is
+writing 2 bytes past the allocated size:
+
+pDataStruct = Marshal.AllocHGlobal(size + 2);
+Marshal.WriteInt32(pDataStruct, size, (int)'X');
+
+Which leads to a crash later on.
+
+


More information about the mono-bugs mailing list