mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Don't deref a NULL shared buffer base
bug:34624618 Change-Id: I5caee20a944d0c7b5d30f8abdbd8734507914a3a
This commit is contained in:
@@ -62,6 +62,11 @@ namespace implementation {
|
||||
const DestinationBuffer& destination,
|
||||
decrypt_cb _hidl_cb) {
|
||||
|
||||
if (mSharedBufferBase == NULL) {
|
||||
_hidl_cb(Status::BAD_VALUE, 0, "decrypt buffer base not set");
|
||||
return Void();
|
||||
}
|
||||
|
||||
android::CryptoPlugin::Mode legacyMode;
|
||||
switch(mode) {
|
||||
case Mode::UNENCRYPTED:
|
||||
|
||||
Reference in New Issue
Block a user