Safely parse minWireVersion and maxWireVersion in initWireVersion

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Reo Kimura (Inactive)
            Reporter:
            Vojislav Stojkovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: