[SERVER-83115] [CQF] SBE values leaked when parameterization enabled Created: 10/Nov/23  Updated: 27/Nov/23  Resolved: 15/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Ben Shteinfeld Assignee: Lynne Wang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-81505 Enable parameterization of find queries Closed
Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2023-11-27
Participants:

 Description   

When we translate MatchExpressions to ABT with parameterization enabled, we construct SBE values for constants which are parameterized in order to get their type. However, in several cases, we forget to free this memory. Example 1, 2, etc.

We should audit translation of ABT with parameterization to fix these and run an ASAN patch build with parameterization enabled.



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

Author:

{'name': 'Lynne Wang', 'email': 'lynne.wang@mongodb.com', 'username': 'lynne-wang'}

Message: SERVER-83115 Add ValueGuard to prevent memory leaks of SBE values in match_expression_visitor
Branch: master
https://github.com/mongodb/mongo/commit/82fbe7a468ef948d44166ff9a9056ae705a51243

Generated at Thu Feb 08 06:51:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.