[SERVER-52968] SBE accesses unowned BSON across yields Created: 20/Nov/20  Updated: 29/Oct/23  Resolved: 24/Nov/20

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

Type: Bug Priority: Major - P3
Reporter: Ian Boros Assignee: Ian Boros
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: Query 2020-11-30
Participants:
Linked BF Score: 77

 Description   

In this line SBE is stashing away unowned BSON into a candidate plan's result buffer. Later on, this result buffer gets unspooled. By that time the plan may have yielded and the BSONObj may point to garbage.



 Comments   
Comment by Githook User [ 23/Nov/20 ]

Author:

{'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'puppyofkosh'}

Message: SERVER-52968 Fix unowned memory bug in SBE
Branch: master
https://github.com/mongodb/mongo/commit/a05141a3e51a8eee3ae620f77f8bf2b7927a8a57

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