[Webkit-unassigned] [Bug 123211] New: Grow method in ArgumentEncoder.cpp does not return aligned address

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 23 10:43:56 PDT 2013


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

           Summary: Grow method in ArgumentEncoder.cpp does not return
                    aligned address
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Other
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit2
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jernkuan+bugzilla at gmail.com
                CC: andersca at apple.com


>From Source\WebKit2\Platform\CoreIPC\ArgumentEncoder.cpp

The grow method attempts to grow the buffer to fit data of a specified size. And the address should be aligned to a specific memory boundary from what i understand. 
However it is not doing so returning a non-aligned address. It just just returning where alignedSize is always a multiple of alignment.

    return m_buffer + alignedSize;

Subsequently it is asserting on the ARM platform with GCC compiler when reinterpret_cast_ptr is called to check on it's alignment of the address been passed in.

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



More information about the webkit-unassigned mailing list