[Webkit-unassigned] [Bug 81570] Properly align members in WebInputEvent and subclasses to make Valgrind happy

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 19 16:06:26 PDT 2012


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





--- Comment #5 from Lei Zhang <thestig at chromium.org>  2012-03-19 16:06:27 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > Should we just use #pragma pack(push, 4) instead?
> 
> I'm dumb. Will pointed out that we would still need to reorder variables to make sure doubles come before ints.
> 
> Here's another idea from Will: Can we memset the struct before memcpy?

The downside to using memset is that we cannot use initializer lists.

-- 
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