Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e54c08ac authored by Jeff Tinker's avatar Jeff Tinker Committed by Android (Google) Code Review
Browse files

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

parents 2a548d44 dc8e2d06
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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: