[Webkit-unassigned] [Bug 11737] New: Windows cookie code uses a reference to a destroyed temporary

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 1 15:41:17 PST 2006


http://bugs.webkit.org/show_bug.cgi?id=11737

           Summary: Windows cookie code uses a reference to a destroyed
                    temporary
           Product: WebKit
           Version: 420+ (nightly)
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: marv.decker at gmail.com


In CookieJarWin cookies() there is this great code:
    String& result = String(buffer, count-1); // Ignore the null terminator.
    delete buffer;
    return result;

The fix is just:
    String result(buffer, count-1); // Ignore the null terminator.
    delete buffer;
    return result;


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