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

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

    • Fully Compatible
    • ALL
    • v4.4, v4.2
    • Query 2020-11-02
    • 46

      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.

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

              Created:
              Updated:
              Resolved: