[SERVER-20244] Should eliminate usage of malloc/strdup/strndup etc Created: 01/Sep/15  Updated: 06/Dec/22  Resolved: 13/Aug/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 3.1.7
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Geert Bosch Assignee: Backlog - Storage Execution Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-20204 Segmentation fault during index build... Closed
Assigned Teams:
Storage Execution
Participants:

 Description   

Remove the remaining few uses of these, and add a linter check (or preferably clang-tidy or so) that will verify no new uses are introduced.

Memory should only be allocated through "new" or otherwise mongoMalloc, but never with plain malloc() or other functions calling it, such as strdup.


Generated at Thu Feb 08 03:53:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.