Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Issue 235038: Fix an uninitialized memory error reported by valgrind.... (Closed)

Created:
11 years, 2 months ago by James Su
Modified:
9 years, 7 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

Fix an uninitialized memory error reported by valgrind. In order to make valgrind happy, this CL changes WebKeyboardEvent::isSystemKey and WebMouseWheelEvent::scrollByPage to int type to make sure the size of WebKeyboardEvent and WebMouseWheelEvent align to a factor of 4 bytes strictly. BUG=22857 : Uninitialized memory sent via IPC from RenderWidgetHostViewGtkWidget::KeyPressReleaseEvent() TEST=Run chrome with valgrind and input something or scroll the mouse wheel in a web page, valgrind should not complain uninitialized memory anymore. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=27451

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M webkit/api/public/WebInputEvent.h View 2 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
James Su
11 years, 2 months ago (2009-09-28 09:14:25 UTC) #1
Evan Stade
11 years, 2 months ago (2009-09-28 16:45:28 UTC) #2
lgtm!

Powered by Google App Engine
This is Rietveld 408576698