[SERVER-66848] Internal transactions test command API use should use owned BSON Created: 27/May/22 Updated: 29/Oct/23 Resolved: 27/May/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jack Mulrow | Assignee: | Jack Mulrow |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Requested: |
v6.0
|
||||
| Sprint: | Sharding NYC 2022-05-30 | ||||
| Participants: | |||||
| Description |
|
The internal transactions test command passes a shared pointer containing a vector of TestInternalTransactionsCommandInfo structs to its transaction API use which have unowned BSON that is owned by the test command itself. If the command is interrupted and exits before the API finishes, the API can crash when accessing the unowned BSON. Instead the command should pass owned BSON to the API. |
| Comments |
| Comment by Githook User [ 27/May/22 ] |
|
Author: {'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}Message: (cherry picked from commit 097483e9f0f9bf9a0083e3930ac4339db512e22a) |
| Comment by Githook User [ 27/May/22 ] |
|
Author: {'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}Message: |