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

Commit f13f93bd authored by Wonsik Kim's avatar Wonsik Kim
Browse files

DefaultBufferPoolSender: check iterator validity

Bug: 319516229
Test: atest DecodeEditEncodeTest EncodeDecodeTest
Change-Id: I65f3d21573e4202bec865f6f993b4b07c4718364
parent 29eba482
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -302,7 +302,7 @@ BufferPoolTypes::BufferPoolStatus DefaultBufferPoolSender::send(
                            "invalid receiver connection id (0).";
            return bufferpool2::ResultStatus::CRITICAL_ERROR;
        } else {
            if (isNewConnection) {
            if (foundConnection == mConnections.end()) {
                foundConnection = mConnections.try_emplace(
                        connectionId, receiverConnectionId, now).first;
            } else {