[Mono-bugs] [Bug 595929] New: Mono.DataConverter.Unpack experiences infinite loop when using bracket repeat counts

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Apr 12 17:41:54 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=595929

http://bugzilla.novell.com/show_bug.cgi?id=595929#c0


           Summary: Mono.DataConverter.Unpack experiences infinite loop
                    when using bracket repeat counts
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: novellAndMono.20.pckwk at spamgourmet.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

The following test method doesn't return (waited for up to 5 minutes).

        [TestMethod()]
        public void Unpack_UsingBracketRepeaters_Matches()
        {
            string description = "[10]b";
            byte[] buffer = new byte[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
            byte[] expected = buffer;
            int startIndex = 0;

            IList actual = DataConverter.Unpack(description, buffer,
startIndex);

            CollectionAssert.AreEqual(expected,actual);
        }

Reproducible: Always

Steps to Reproduce:
        [TestMethod()]
        public void Unpack_UsingBracketRepeaters_Matches()
        {
            string description = "[10]b";
            byte[] buffer = new byte[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
            byte[] expected = buffer;
            int startIndex = 0;

            IList actual = DataConverter.Unpack(description, buffer,
startIndex);

            CollectionAssert.AreEqual(expected,actual);
        }
Actual Results:  
Never returns from the Unpack method.

Expected Results:  
A passed test.

-- 
Configure bugmail: http://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