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

Commit 420879d7 authored by Paul Colta's avatar Paul Colta Committed by Automerger Merge Worker
Browse files

HDMICEC: Out of Bounds Write in sendMessage in HdmiCec.cpp am: a93bdd05 am: e8fccd25

parents bbfa7d70 e8fccd25
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -307,6 +307,9 @@ Return<void> HdmiCec::getPhysicalAddress(getPhysicalAddress_cb _hidl_cb) {
}

Return<SendMessageResult> HdmiCec::sendMessage(const CecMessage& message) {
    if (message.body.size() > CEC_MESSAGE_BODY_MAX_LENGTH) {
        return SendMessageResult::FAIL;
    }
    cec_message_t legacyMessage {
        .initiator = static_cast<cec_logical_address_t>(message.initiator),
        .destination = static_cast<cec_logical_address_t>(message.destination),