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

Commit bde8adfe authored by Chad Brubaker's avatar Chad Brubaker Committed by Gerrit Code Review
Browse files

Merge "Fix benign unsigned integer overflow"

parents e89f6562 679d5e64
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