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

Commit c33c441b 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 am: 567239b3

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

Change-Id: I2a35ec39c28b72c47d8baf4688ebab92e1835391
parents f4785c6d 567239b3
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -176,7 +176,12 @@ status_t layer_state_t::read(const Parcel& input)
        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();
    backgroundBlurRadius = input.readUint32();
    cachedBuffer.token = input.readStrongBinder();