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

Commit 9d948679 authored by Pawin Vongmasa's avatar Pawin Vongmasa Committed by android-build-merger
Browse files

Zero-initialize HIDL structs before passing

am: c4a5f5ec

Change-Id: I5a4a3bf56e4906e2daea1329913126b53d20ecc3
parents 2ad06909 c4a5f5ec
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1050,7 +1050,7 @@ status_t H2BGraphicBufferProducer::detachNextBuffer(

status_t H2BGraphicBufferProducer::attachBuffer(
        int* outSlot, const sp<GraphicBuffer>& buffer) {
    AnwBuffer tBuffer;
    AnwBuffer tBuffer{};
    wrapAs(&tBuffer, *buffer);
    status_t fnStatus;
    status_t transStatus = toStatusT(mBase->attachBuffer(tBuffer,
@@ -1065,7 +1065,7 @@ status_t H2BGraphicBufferProducer::queueBuffer(
        int slot,
        const QueueBufferInput& input,
        QueueBufferOutput* output) {
    HGraphicBufferProducer::QueueBufferInput tInput;
    HGraphicBufferProducer::QueueBufferInput tInput{};
    native_handle_t* nh;
    if (!wrapAs(&tInput, &nh, input)) {
        ALOGE("H2BGraphicBufferProducer::queueBuffer - "