microsoft / microsoft/mimalloc

Why is `mimalloc-redirect` closed-source?

Open
#836 5 comments 21 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
13.4k
Forks
1.2k
Avg merge
4d 45m
Merged PRs (30d)
13

Description

While searching the definition of `MIMALLOC_DISABLE_REDIRECT`, I realized this part of the project isn't open-sourced and resides just in the form of a binary in `bin/` dir, why is that?

I reverse engineered the file and found out PDB path at `C:\Users\daan\dev\mimalloc-redirect\out\msvc-x64\Release\mimalloc-redirect.pdb` which points at @daanx being its author. Could you please possibly open source its code? The reason is that I want to analyze how it performs the hooks and which functions it exactly hooks (even though I can mostly see it form decompilation). And again the reason for that is that some binaries out there are compiled with static CRT, I want to find out if it's viable to reverse engineer them to find the same functions and hook them up manually to mimalloc...

Having that part closed-source also prevents users from doing any kind of customization there...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the binary in bin/ and the MIMALLOC_DISABLE_REDIRECT definition to understand the component this request concerns. The issue asks for the mimalloc-redirect source so its hooks and customization can be reviewed; no implementation files or tests are identified, so completion criteria require maintainer clarification.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.