https://bugzilla.novell.com/show_bug.cgi?id=445867


           Summary: Mono.DataConverter assumes alignment during string
                    packing but not during unpacking
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


(Assigning this System since I have no clue which would be more appropriate.)

The DataConverter class assumes that when packing strings, alignment to a
4-byte boundary is wanted, but assumes no alignment during unpacking.  This
prevents correct unpacking of strings that are not aligned.

I am attaching a patch that fixes this issue, as well as:

* Disables warnings about the CLSCompliance attributes if not compiling with
CLS compliance enabled.

* Causes unpacked strings to be typed System.String instead of System.Char[].

These two pieces may be omitted if this is not desired, but I believe they will
be beneficial to this class.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to