[Webkit-unassigned] [Bug 23500] New: KURL::parse() incorrectly compares its result to original string

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 23 05:25:06 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=23500

           Summary: KURL::parse() incorrectly compares its result to
                    original string
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ap at webkit.org
                CC: mitz at webkit.org


KURL::parse() has an optimization, where it reuses an original String if
parsing didn't change it. But the sting comparison is incorrect, as it doesn't
check that string lengths are the same:

    if (originalString && strncmp(buffer.data(), url, m_fragmentEnd) == 0)

Unfortunately, if I fix this bug, I'm getting a regression in
fast/loader/url-parse-1.html.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list