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

Commit 75abadc9 authored by Ivan Lozano's avatar Ivan Lozano Committed by android-build-merger
Browse files

Merge "Fix sanitizer in handleTransitionLocked." am: 66d9ea63

am: 201a44a9

Change-Id: I42d2b3c03424b971755d03b6b2e6aa2fc32f3b31
parents 2f5196ac 201a44a9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2163,7 +2163,7 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
            // (ie: in drawing state but not in current state)
            // also handle displays that changed
            // (ie: displays that are in both lists)
            for (size_t i=0 ; i<dc ; i++) {
            for (size_t i=0 ; i<dc ;) {
                const ssize_t j = curr.indexOfKey(draw.keyAt(i));
                if (j < 0) {
                    // in drawing state but not in current state
@@ -2198,7 +2198,7 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
                            hw->disconnect(getHwComposer());
                        mDisplays.removeItem(display);
                        mDrawingState.displays.removeItemsAt(i);
                        dc--; i--;
                        dc--;
                        // at this point we must loop to the next item
                        continue;
                    }
@@ -2220,6 +2220,7 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
                        }
                    }
                }
                ++i;
            }

            // find displays that were added