[Mono-bugs] [Bug 445867] New: Mono. DataConverter assumes alignment during string packing but not during unpacking

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 17 19:47:20 EST 2008


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: mono-bugs at lists.ximian.com
        ReportedBy: cdhowie at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list