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

Commit 9343be95 authored by Vishwath Mohan's avatar Vishwath Mohan Committed by Android (Google) Code Review
Browse files

Merge "Fix benign unsigned integer overflow"

parents fa7d97fa cfe30231
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1318,7 +1318,8 @@ void ANetworkSession::threadLoop() {

        List<sp<Session> > sessionsToAdd;

        for (size_t i = mSessions.size(); res > 0 && i-- > 0;) {
        for (size_t i = mSessions.size(); res > 0 && i > 0;) {
            i--;
            const sp<Session> &session = mSessions.valueAt(i);

            int s = session->socket();
@@ -1409,4 +1410,3 @@ void ANetworkSession::threadLoop() {
}

}  // namespace android