Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68720

Safely parse minWireVersion and maxWireVersion in initWireVersion

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Reo Kimura (Inactive)
            Reporter:
            vojislav.stojkovic@mongodb.com Vojislav Stojkovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: