summaryrefslogtreecommitdiffstats
path: root/ppapi/native_client
diff options
context:
space:
mode:
authoreugenis@google.com <eugenis@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-26 07:47:56 +0000
committereugenis@google.com <eugenis@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-26 07:47:56 +0000
commit2c01123ac6ccb17cd8b59ed02019ca0fb8996783 (patch)
tree9408e9bd63fc60b977b339d8c135c06213baefd3 /ppapi/native_client
parent5de20469f3abeff07adf7057768e1fb7d614fe7a (diff)
downloadchromium_src-2c01123ac6ccb17cd8b59ed02019ca0fb8996783.zip
chromium_src-2c01123ac6ccb17cd8b59ed02019ca0fb8996783.tar.gz
chromium_src-2c01123ac6ccb17cd8b59ed02019ca0fb8996783.tar.bz2
Zero-fill some SRPC padding.
This is needed to keep Valgrind silent and help it catch future bugs like http://crbug/101473. BUG=http://code.google.com/p/nativeclient/issues/detail?id=2385 TEST=none Review URL: http://codereview.chromium.org/8351035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107311 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/native_client')
-rw-r--r--ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc
index 2027b24..75aa7f3 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc
@@ -100,6 +100,7 @@ void PpbFontRpcServer::PPB_Font_Describe(
struct PP_FontDescription_Dev* pp_description =
reinterpret_cast<struct PP_FontDescription_Dev*>(description);
pp_description->face= PP_MakeUndefined();
+ pp_description->padding = 0;
struct PP_FontMetrics_Dev* pp_metrics =
reinterpret_cast<struct PP_FontMetrics_Dev*>(metrics);
PP_Bool pp_success = PPBFontInterface()->Describe(font,