microsoft / mimalloc

mimalloc is a compact general purpose allocator with excellent performance.
MIT License
9.74k stars 791 forks source link

Segment check range exceeds 40TB for asan builds #881

Closed robertblaketaylor closed 1 month ago

robertblaketaylor commented 2 months ago

On some platforms the asan address range starts at >100TB so while it allocates the pointer in that range when checking if the pointer is part of the heap, its above the 40tb cutoff.

daanx commented 1 month ago

I pushed a fix -- however, I would have expected things to work since the valid pointer check falls back to the arena check?