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

Commit 567239b3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "libgui: layer_state_t::read() check null" into rvc-dev-plus-aosp am:...

Merge "libgui: layer_state_t::read() check null" into rvc-dev-plus-aosp am: 4c924bab am: e6f76cfa

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12184116

Change-Id: I0441324f9d031df08f9e07f28550475cfd90880a
parents c7cd878c e6f76cfa
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -176,7 +176,12 @@ status_t layer_state_t::read(const Parcel& input)
        sidebandStream = NativeHandle::create(input.readNativeHandle(), true);
        sidebandStream = NativeHandle::create(input.readNativeHandle(), true);
    }
    }


    colorTransform = mat4(static_cast<const float*>(input.readInplace(16 * sizeof(float))));
    const void* color_transform_data = input.readInplace(16 * sizeof(float));
    if (color_transform_data) {
        colorTransform = mat4(static_cast<const float*>(color_transform_data));
    } else {
        return BAD_VALUE;
    }
    cornerRadius = input.readFloat();
    cornerRadius = input.readFloat();
    backgroundBlurRadius = input.readUint32();
    backgroundBlurRadius = input.readUint32();
    cachedBuffer.token = input.readStrongBinder();
    cachedBuffer.token = input.readStrongBinder();