[SERVER-56991] SBE regex memory leak Created: 16/May/21  Updated: 29/Oct/23  Resolved: 17/May/21

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

Type: Bug Priority: Major - P3
Reporter: Ian Boros Assignee: Anton Korshunov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query Execution 2021-05-31
Participants:

 Description   

In this code, it is possible for (bsonRegexTag, bsonRegexVal) to be leaked if the call to makeNewPcreRegex() uasserts while compiling the regex. We should fix this code to be exception safe.



 Comments   
Comment by Githook User [ 17/May/21 ]

Author:

{'name': 'Anton Korshunov', 'email': 'anton.korshunov@mongodb.com', 'username': 'antkorsh'}

Message: SERVER-56991 SBE regex memory leak
Branch: master
https://github.com/mongodb/mongo/commit/77c25b4ef2c573287a66a206214c875274ae09ba

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