[Mono-bugs] [Bug 681916] New: null byte array doesnt get stored in the database as null

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 23 08:23:31 EDT 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=681916#c0


           Summary: null byte array doesnt get stored in the database as
                    null
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: 64bit
        OS/Version: RHEL 5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: srfcanada at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=420910)
 --> (http://bugzilla.novell.com/attachment.cgi?id=420910)
code that demonstrates the problem

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64;
Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; MS-RTC LM 8)

When a Null byte array gets stored in the database , it ends up storing '0x' in
the database but this actually represents an empty byte array so when its read
back, it comes back as a empty byte array rather than a null byte array. The
attached code demonstrates this. Running it on windows it stores and load back
as null .

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
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