Fixes for the modem simulator#2899
Open
llfhdskf wants to merge 5 commits into
Open
Conversation
ser-io
requested changes
Jul 24, 2026
added 5 commits
July 24, 2026 20:26
std::string::compare > The overloads taking parameters named pos1 or pos2 > throws std::out_of_range if the argument is out of range. Bug: 509614113 Signed-off-by: Roman Kiryanov <rkir@google.com>
std::stoi: > std::invalid_argument if no conversion could be performed. > std::out_of_range if the converted value would fall out of the range Bug: 509614113 Signed-off-by: Roman Kiryanov <rkir@google.com>
…nated If the `Read` call fills the whole buffer, `commands.append(buffer.data())` with no zero characters will read past the buffer. If the `Read` produces data with zero characters in the middle, it will cause a loss of data. Bug: 509614113 Signed-off-by: Roman Kiryanov <rkir@google.com>
The `sms_pdu` is used in an async callback, potentially after the control leaves the scope. Bug: 509614113 Signed-off-by: Roman Kiryanov <rkir@google.com>
* The code used to erase elements from the `clients_` and `remote_clients_` while iterating over them in `MonitorLoop`. * `SetRemoteClient` is called from two threads (main.cpp and `CallService::HandleDial`), so it needs a mutex. * `CallService::HandleRemoteCall` can also be called from two threads (host-guest and guest-host calls), so `CallService` also needs a mutex. Bug: 509614113 Signed-off-by: Roman Kiryanov <rkir@google.com>
ser-io
approved these changes
Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.