[SERVER-19379] do not dereference invalid endpoint iterator in NetworkInterfaceASIO::_setupSocket Created: 13/Jul/15  Updated: 31/Jul/15  Resolved: 31/Jul/15

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Adam Midvidy Assignee: Samantha Ritter (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platform 7 08/10/15
Participants:

 Description   

Currently we may dereference an invalid endpoint iterator
https://github.com/mongodb/mongo/blob/master/src/mongo/executor/network_interface_asio_connect.cpp#L156

the ASIO documentation explicitly states that this is unsafe:

https://github.com/mongodb/mongo/blob/master/src/third_party/asio-asio-1-11-0/asio/include/asio/connect.hpp#L474



 Comments   
Comment by Adam Midvidy [ 31/Jul/15 ]

samantha.ritter@10gen.com, I think this went away as part of your _validateAndRun helper. Want to assign it to yourself and mark resolved?

Generated at Thu Feb 08 03:50:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.