WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
123211
Grow method in ArgumentEncoder.cpp does not return aligned address
https://bugs.webkit.org/show_bug.cgi?id=123211
Summary
Grow method in ArgumentEncoder.cpp does not return aligned address
jernkuan+bugzilla
Reported
2013-10-23 10:42:42 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2013-10-23 10:44:28 PDT
(In reply to
comment #0
)
> From Source\WebKit2\Platform\CoreIPC\ArgumentEncoder.cpp > > It just just returning where alignedSize is always a multiple of alignment.
That's the whole point of the grow function.
jernkuan+bugzilla
Comment 2
2013-10-23 10:56:38 PDT
But should the grow method return an aligned address?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug