From f6ffee472c33b85d21c820862c398406e1c964b5 Mon Sep 17 00:00:00 2001 From: Edwin Wong Date: Wed, 11 Jun 2014 11:39:28 -0700 Subject: [PATCH] Fixed intermittent failure in GTS test. Need to clear mEncKey in constructor, otherwise, decrypted data is wrong. bug: 15540382 Change-Id: I0e2d4d6edd8a5800fa2a36e9f258782edc493e13 --- proprietary/cryptoPlugin/WVCryptoPlugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proprietary/cryptoPlugin/WVCryptoPlugin.cpp b/proprietary/cryptoPlugin/WVCryptoPlugin.cpp index b5098114..2bde312c 100644 --- a/proprietary/cryptoPlugin/WVCryptoPlugin.cpp +++ b/proprietary/cryptoPlugin/WVCryptoPlugin.cpp @@ -46,6 +46,8 @@ const uint8_t WVCryptoFactory::kUUIDWidevine[16] = { WVCryptoPlugin::WVCryptoPlugin(const void *data, size_t size) : mInitCheck(NO_INIT) { + memset(mEncKey, 0, sizeof(mEncKey)); + // not using data at this time, require // size to be zero. if (size > 0) {