[SERVER-54364] Fix stack-use-after-scope when constructing nonzero DecimalCounter Created: 05/Feb/21  Updated: 29/Oct/23  Resolved: 06/Feb/21

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

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

Issue Links:
Depends
Related
related to SERVER-54106 Make DecimalCounter able to be constr... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2021-02-22
Participants:
Linked BF Score: 0

 Description   

We don't keep around theĀ ItoA, which causes the memory referred to by the StringData to go out of scope.



 Comments   
Comment by Githook User [ 05/Feb/21 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-54364 Fix stack-use-after-scope when constructing nonzero DecimalCounter
Branch: master
https://github.com/mongodb/mongo/commit/0b0acab69c72b76b671ab914ac24c15dbad53680

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