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

Commit dae12aeb authored by Edwin Wong's avatar Edwin Wong Committed by Android (Google) Code Review
Browse files

Merge "Fix Heap buffer overflow in clearkey releaseSecureStops"

parents ea51ad6e e2dfa162
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -797,7 +797,8 @@ Return<void> DrmPlugin::getSecureStopIds(getSecureStopIds_cb _hidl_cb) {
}

Return<Status> DrmPlugin::releaseSecureStops(const SecureStopRelease& ssRelease) {
    if (ssRelease.opaqueData.size() == 0) {
    // minimum opaqueData contains the uint32_t count, see comment below
    if (ssRelease.opaqueData.size() < sizeof(uint32_t)) {
        return Status::BAD_VALUE;
    }