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

Clear memory in the data_union stored on the endpoint before use

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0, 5.0.26, 6.0.15, 7.0.7, 7.3.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.3, v7.2, v7.0, v6.0, v5.0
    • Service Arch 2024-02-19
    • 8

      The endpoint class has a private union that allocates a char buffer on the stack. Because the code here increments the size of the string stored on the buffer without copying any additional data into it, that data is undefined. We should null out the data in this buffer so that we guarantee that we are not storing junk data with the string

            Assignee:
            joseph.prince@mongodb.com Joseph Prince
            Reporter:
            joseph.prince@mongodb.com Joseph Prince
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: