Merge "Don't deref a NULL shared buffer base"

This commit is contained in:
Jeff Tinker
2017-01-26 01:11:39 +00:00
committed by Android (Google) Code Review

View File

@@ -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: