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

Commit 5c5ee81b authored by Chris Forbes's avatar Chris Forbes Committed by android-build-merger
Browse files

Merge "ui: Fix bad size check in Fence::unflatten" into klp-dev am: 25556811

am: 71d3ef13

Change-Id: I75797414173ebfb38eefe02ac0a635f10c59d883
parents 057ae95a 71d3ef13
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ nsecs_t Fence::getSignalTime() const {
}

size_t Fence::getFlattenedSize() const {
    return 1;
    return 4;
}

size_t Fence::getFdCount() const {
@@ -152,7 +152,7 @@ status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, si
        return INVALID_OPERATION;
    }

    if (size < 1) {
    if (size < getFlattenedSize()) {
        return NO_MEMORY;
    }