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

Do not use inline static on unique_ptr

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2019-09-09
    • 40

    Description

      When inline static is used in a header for a variable, multiple at_exit entries get registered for the same variable. This leads to undefined behavior.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: