[SERVER-60299] Backport PCRE bugfix for Bugzilla #2613 Created: 28/Sep/21  Updated: 29/Oct/23  Resolved: 21/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 6.0 Required
Fix Version/s: 5.2.0, 4.2.18, 4.4.10, 5.0.4

Type: Bug Priority: Major - P3
Reporter: Ryan Egesdahl (Inactive) Assignee: Ryan Egesdahl (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.4, v4.2, v4.0
Sprint: Dev Platform 2021-10-04, Dev Platform 2021-11-01
Participants:

 Description   

PCRE 8.42 contains a bug that causes a memory leak whenever a compile error occurs with more than 20 named capture groups. Unfortunately, the latest and final version, 8.45, appears to have its own bugs that we would have to fix. Rather than try to upgrade, we can simply backport the appropriate changes to our vendored version.



 Comments   
Comment by Githook User [ 04/Oct/21 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-60299 Backport PCRE bugfix for Bugzilla #2613

(cherry picked from commit 46ba1b4ec34ddb0bdecaa8261f770bbf1c860216)
(cherry picked from commit dbb78400a8ebdc3f376722ac15f1f882fa1326c5)
(cherry picked from commit 9fdb2031fba405e77368e5780722db7681c4a47f)
Branch: v4.2
https://github.com/mongodb/mongo/commit/49f1a187b3acee15461c4863af4c440509d5f89c

Comment by Githook User [ 04/Oct/21 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-60299 Backport PCRE bugfix for Bugzilla #2613

(cherry picked from commit 46ba1b4ec34ddb0bdecaa8261f770bbf1c860216)
(cherry picked from commit dbb78400a8ebdc3f376722ac15f1f882fa1326c5)
Branch: v4.4
https://github.com/mongodb/mongo/commit/9fdb2031fba405e77368e5780722db7681c4a47f

Comment by Githook User [ 04/Oct/21 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-60299 Backport PCRE bugfix for Bugzilla #2613

(cherry picked from commit 46ba1b4ec34ddb0bdecaa8261f770bbf1c860216)
Branch: v5.0
https://github.com/mongodb/mongo/commit/dbb78400a8ebdc3f376722ac15f1f882fa1326c5

Comment by Githook User [ 29/Sep/21 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-60299 Backport PCRE bugfix for Bugzilla #2613
Branch: master
https://github.com/mongodb/mongo/commit/46ba1b4ec34ddb0bdecaa8261f770bbf1c860216

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