Check for null pointers in oemcrypto adapter am: 42eb79a3ff am: 7a4313483c am: 2643b76731
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/11677946 Change-Id: I624aa93387d3765417494bd2387330e1b354993a
This commit is contained in:
committed by
Automerger Merge Worker
commit
fcf75fec0d
@@ -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