[Mono-bugs] [Bug 80263][Maj] Changed - Getting custom attributes when one attribute was initialized with a params array that includes a string array crashes the runtime
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Dec 14 20:45:03 EST 2006
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 dmitchell at logos.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80263
--- shadow/80263 2006-12-14 16:03:51.000000000 -0500
+++ shadow/80263.tmp.6194 2006-12-14 20:45:03.000000000 -0500
@@ -1,16 +1,16 @@
Bug#: 80263
-Product: Mono: Runtime
+Product: Mono: Compilers
Version: 1.2
-OS: Mac OS X 10.3
+OS: All
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Major
-Component: misc
+Component: C#
AssignedTo: mono-bugs at ximian.com
ReportedBy: dmitchell at logos.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
Cc:
@@ -93,6 +93,17 @@
1. Remove the prameters "blah" and "additional prameter" from the call to
the constructor of MyAttribute
2. Remove the AttributeUsage attribute from the MyAttribute class
3. Remove all items from the string array (the string "crash")
4. Make the string array an object array
5. Replace the string array with an array of some other type, such as int
+
+------- Additional Comments From dmitchell at logos.com 2006-12-14 20:45 -------
+Upon further investigation this actually seems to be a problem with
+the Mono C# compiler, and it is a problem in the Windows version,
+after all.
+
+For some reason, when encoding the attributes for the string array,
+the Mono compiler inserts an extra 0x0E (indicator for string data
+type) into the bytestream for each string in the array. This, in
+turn causes the string decoder to believe that it has a string with
+14 characters, resulting in the dreaded "off by n" problem.
More information about the mono-bugs
mailing list