mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 13:49:45 +00:00
Merge "Don't deref a NULL shared buffer base"
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