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

Unified Diff: ppapi/proxy/ppb_image_data_proxy.cc

Issue 383543004: Pepper: Initialize PP_ImageDataDesc when creating ImageData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Spelling. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_image_data_proxy.cc
diff --git a/ppapi/proxy/ppb_image_data_proxy.cc b/ppapi/proxy/ppb_image_data_proxy.cc
index 87b49a777a1caf669be091172a24d52acfdecf0a..d2d7555563542071b87d0a9412077704e4b87982 100644
--- a/ppapi/proxy/ppb_image_data_proxy.cc
+++ b/ppapi/proxy/ppb_image_data_proxy.cc
@@ -495,6 +495,9 @@ PP_Resource PPB_ImageData_Proxy::CreateProxyResource(
HostResource result;
PP_ImageDataDesc desc;
+ // Don't send an uninitialized |desc| to the renderer.
+ // https://crbug.com/391023.
+ memset(&desc, 0, sizeof(desc));
dmichael (off chromium) 2014/07/09 23:11:16 I think it would be enough to say PP_ImageDataDesc
bbudge 2014/07/09 23:34:53 Better. I'll use the latter which is clearer (and
switch (type) {
case PPB_ImageData_Shared::SIMPLE: {
ppapi::proxy::SerializedHandle image_handle_wrapper;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698