Conversation

Have found a few C++14 sized deallocation bugs in the wild due by using it for adding an extra sanity check in github.com/AndroidHardeni. It's meant to be used as an optimization... fatal allocator error: sized deallocation mismatch (small) 0x787cfeb14c00, real: 192, claimed: 32
1
12
Replying to
This case happens when Krita exits and would lead to the allocation ending up in the wrong thread cache. It would be harmless in jemalloc since an 192 byte allocation could pass as 32 bytes. It might handle it correctly as 192 bytes if it gets flushed out of the thread cache...
2