Comment #7 on issue 22857 by [email protected]: Uninitialized memory sent  
via IPC from RenderWidgetHostViewGtkWidget::KeyPressReleaseEvent()
http://code.google.com/p/chromium/issues/detail?id=22857

Please ignore my comment #3. The real reason of this issue is: the type of  
WebKeyboardEvent::isSystemKey is bool, which will be compiled into a 1 byte  
variable,
while the size of WebKeyboardEvent is still padded to a factor of 4 bytes,  
thus there
will be 3 uninitialized bytes at the end of WebKeyboardEvent. Changing the  
type of
isSystemKey to int solves this problem.

WebMouseWheelEvent has the samme problem.

Do you think it's ok to use int instead of bool here?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to