Check for null pointers in oemcrypto adapter am: 42eb79a3ff am: 7a4313483c
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11677946 Change-Id: Ibdd1da583e249fc412e3a2c2d2a40835f7a77f65
This commit is contained in:
committed by
Automerger Merge Worker
commit
0f63c0191d
@@ -754,6 +754,10 @@ class Adapter {
|
||||
LOOKUP_ALL(8, Initialize, OEMCrypto_Initialize);
|
||||
LOOKUP_ALL(8, APIVersion, OEMCrypto_APIVersion);
|
||||
LOOKUP_ALL(8, Terminate, OEMCrypto_Terminate);
|
||||
if (level1_.Initialize == nullptr || level1_.APIVersion == nullptr ||
|
||||
level1_.Terminate == nullptr) {
|
||||
level1_valid_ = false;
|
||||
}
|
||||
if (!level1_valid_) {
|
||||
metrics->OemCryptoDynamicAdapterMetrics::SetInitializationMode(
|
||||
wvcdm::metrics::OEMCrypto_INITIALIZED_USING_L3_INVALID_L1);
|
||||
|
||||
Reference in New Issue
Block a user