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

Commit b7c88afd authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "fix validateBufferDescriptorInfo error when usage bits were 32-bits"...

Merge "fix validateBufferDescriptorInfo error when usage bits were 32-bits" am: 61ba79e8 am: a464d0d6 am: 5563143a am: f562fc15 am: 7ddd4917

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



Change-Id: I77e06863f673caef2ee00c2a974ff073f7a57a13
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7e2afbb8 7ddd4917
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -465,7 +465,7 @@ status_t GraphicBuffer::unflatten(void const*& buffer, size_t& size, int const*&
        if (flattenWordCount == 13) {
            usage = (uint64_t(buf[12]) << 32) | uint32_t(buf[6]);
        } else {
            usage = uint64_t(usage_deprecated);
            usage = uint64_t(ANDROID_NATIVE_UNSIGNED_CAST(usage_deprecated));
        }
        native_handle* h =
                native_handle_create(static_cast<int>(numFds), static_cast<int>(numInts));