Commit c2f7fe5f authored by bbudge@chromium.org's avatar bbudge@chromium.org

Pepper: Initialize PP_ImageDataDesc when creating ImageData.

Clears memory so we don't send unitialized memory to the
renderer.

BUG=391023

Review URL: https://codereview.chromium.org/383543004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282222 0039d316-1c4b-4281-b951-d872f2087c98
parent d27c6526
......@@ -494,7 +494,9 @@ PP_Resource PPB_ImageData_Proxy::CreateProxyResource(
}
HostResource result;
PP_ImageDataDesc desc;
// Initialize desc so we don't send unitialized memory over IPC.
// https://crbug.com/391023.
PP_ImageDataDesc desc = {};
switch (type) {
case PPB_ImageData_Shared::SIMPLE: {
ppapi::proxy::SerializedHandle image_handle_wrapper;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment