Fix TestLoadLicenseForOutOfRangeSubStringOffSetAndLengths() am: 1563fb2a27

Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/18151647

Change-Id: I8632a274c3ca239b4342a639d3566214a54dd689
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Vicky Min
2022-05-04 15:10:57 +00:00
committed by Automerger Merge Worker

View File

@@ -1702,9 +1702,9 @@ class OEMCryptoLicenseOverflowTest : public OEMCryptoSessionTests,
license_messages.SignAndVerifyRequest();
license_messages.CreateDefaultResponse();
size_t message_length = sizeof(license_messages.response_data());
OEMCryptoResult result = license_messages.LoadResponse();
f(message_length, &license_messages);
license_messages.EncryptAndSignResponse();
OEMCryptoResult result = license_messages.LoadResponse();
s.close();
// Verifying error is not due to signature failure which can be caused due
// to test code.