Clear memory in the data_union stored on the endpoint before use

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Joseph Prince
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: