[SERVER-42952] Do not use inline static on unique_ptr Created: 21/Aug/19  Updated: 29/Oct/23  Resolved: 22/Aug/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2019-09-09
Participants:
Linked BF Score: 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.



 Comments   
Comment by Githook User [ 21/Aug/19 ]

Author:

{'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto'}

Message: SERVER-42952 Do not use inline static unique_ptr
Branch: master
https://github.com/mongodb/mongo/commit/109d6d0898bfa52e4650a9534f4fb75c7040e753

Generated at Thu Feb 08 05:01:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.