-
Notifications
You must be signed in to change notification settings - Fork 986
Open
Description
Hello, I enabled the mimalloc ASAN feature and noticed a minor issue: insufficient accuracy.
For example, in code like this:
char* ptr = (char*)mi_malloc(20);
ptr[20] = 1; // Deliberate out-of-bounds access here. ASAN should report an error.
No error was triggered. However, when I tried a larger out-of-bounds access:
char* ptr = (char*)mi_malloc(20);
ptr[24] = 1; // Deliberate larger out-of-bounds access here.
It finally reported an error: "use of poisoned memory."
This suggests that mimalloc ASAN's detection is not precise enough.
My development environment: Windows, Visual Studio 2022, mimalloc 2.1.7, using the mimalloc static library with MI_TRACK_ASAN=ON and MI_OVERRIDE=OFF.
I look forward to your assistance.
Metadata
Metadata
Assignees
Labels
No labels