[SERVER-68720] Safely parse minWireVersion and maxWireVersion in initWireVersion Created: 10/Aug/22  Updated: 29/Oct/23  Resolved: 12/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Vojislav Stojkovic Assignee: Reo Kimura (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-68309 Investigate for unsafe narrowing conv... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2022-08-22, Service Arch 2022-09-05, Service Arch 2022-09-19, Service Arch 2022-10-03, Service Arch 2022-10-17
Participants:

 Description   

As discovered in SERVER-68309, the code in initWireVersion performs an unsafe conversion when getting the values for minWireVersion and maxWireVersion from the reply.

To handle this safely, we should switch to using wire_version::parseWireVersionFromHelloReply.



 Comments   
Comment by Githook User [ 12/Oct/22 ]

Author:

{'name': 'Reo Kimura', 'email': 'reo.kimura@mongodb.com', 'username': 'rkimura21'}

Message: SERVER-68720 Safely parse minWireVersion and maxWireVersion in initWireVersion
Branch: master
https://github.com/mongodb/mongo/commit/9737fd6f30e91604cf4e2576e839b72104466d70

Generated at Thu Feb 08 06:11:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.