From 48388efcf4a8f49626fdea3fbb1340d12b4aa0d1 Mon Sep 17 00:00:00 2001 From: "John W. Bruce" Date: Wed, 14 Aug 2024 00:39:32 +0000 Subject: [PATCH] Increase size of BCC buffer in OEC tests We are receiving reports from partners in the field that they are failing the OEMCrypto tests only because the tests assume the BCC will fit into 5k of memory but their BCC is nearly 8k in size. This patch increases the buffer to 10k. Cherry-picked from http://go/wvgerrit/205312 Bug: 354834629 Test: x86-64 Merged from https://widevine-internal-review.googlesource.com/204773 Change-Id: I360196518b7651139c003505253d1aed6a0c3907 --- libwvdrmengine/oemcrypto/test/oec_session_util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libwvdrmengine/oemcrypto/test/oec_session_util.cpp b/libwvdrmengine/oemcrypto/test/oec_session_util.cpp index f11676db..41e7a5f4 100644 --- a/libwvdrmengine/oemcrypto/test/oec_session_util.cpp +++ b/libwvdrmengine/oemcrypto/test/oec_session_util.cpp @@ -542,7 +542,7 @@ void ProvisioningRoundTrip::VerifyLoadFailed() { } void Provisioning40RoundTrip::PrepareSession(bool is_oem_key) { - const size_t buffer_size = 5000; // Make sure it is large enough. + const size_t buffer_size = 10240; // Make sure it is large enough. std::vector public_key(buffer_size); size_t public_key_size = buffer_size; std::vector public_key_signature(buffer_size); @@ -604,7 +604,7 @@ OEMCryptoResult Provisioning40RoundTrip::LoadDRMCertResponse() { } void Provisioning40CastRoundTrip::PrepareSession() { - const size_t buffer_size = 5000; // Make sure it is large enough. + const size_t buffer_size = 10240; // Make sure it is large enough. std::vector public_key(buffer_size); size_t public_key_size = buffer_size; std::vector public_key_signature(buffer_size);