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

Commit be752e93 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5066295 from e2393365 to pi-qpr2-release

Change-Id: I1e886e3c861aba799f66c8eaef967fa2f9180e2e
parents 65becf9b e2393365
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -377,6 +377,10 @@ status_t GraphicBuffer::flatten(void*& buffer, size_t& size, int*& fds, size_t&

status_t GraphicBuffer::unflatten(
        void const*& buffer, size_t& size, int const*& fds, size_t& count) {
    if (size < 12 * sizeof(int)) {
        android_errorWriteLog(0x534e4554, "114223584");
        return NO_MEMORY;
    }

    int const* buf = static_cast<int const*>(buffer);