[Mono-bugs] [Bug 62263][Nor] Changed - [PATCH] invalid pointer array access
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 2 Aug 2004 21:51:15 -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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=62263
--- shadow/62263 2004-08-02 21:50:27.000000000 -0400
+++ shadow/62263.tmp.1354 2004-08-02 21:51:14.000000000 -0400
@@ -2,22 +2,22 @@
Product: Mono: Compilers
Version: unspecified
OS: SLES 8
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: C#
-AssignedTo: mono-bugs@ximian.com
+AssignedTo: bmaurer@users.sf.net
ReportedBy: overmind@gmx.net
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: invalid pointer array access
+Summary: [PATCH] invalid pointer array access
Description of Problem:
When I access a C-style array of structs using a pointer in an unsafe
context, the pointer gets incremented by exactly 4 byte, not by the size of
the array.
@@ -50,6 +50,10 @@
------- Additional Comments From bmaurer@users.sf.net 2004-08-02 21:50 -------
Created an attachment (id=8837)
Patch
+
+------- Additional Comments From bmaurer@users.sf.net 2004-08-02 21:51 -------
+The problem is that we take the size of Type*, not the size of Type.
+So the size always seems to be 4.