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

Always initialize the numInserted out-parameter in AbstractIndexAccessMethod::insertKeys

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0, 4.4.2, 4.2.11
    • Component/s: Index Maintenance
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4, v4.2
    • Sprint:
      Query 2020-11-02
    • Linked BF Score:
      46

      Description

      Callers may pass an uninitialized int64 value as an out-parameter to AbstractIndexAccessMethod::insertKeys. In cases where the method returns early with an exception, this can result in the random contents of the int64 being added to the OpDebug metrics.

        Attachments

          Activity

            People

            Assignee:
            bernard.gorman Bernard Gorman
            Reporter:
            bernard.gorman Bernard Gorman
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: