• Eugene Kosov's avatar
    MDEV-15030 Add ASAN instrumentation · 75c76dbb
    Eugene Kosov authored
    Learn both valgrind and asan to catch this bug:
    
      mem_heap_t* heap = mem_heap_create(1024);
      byte* p = reinterpret_cast<byte*>(heap) + sizeof(mem_heap_t);
      *p = 123;
    
    Overflows of the last allocation in a block will be catched too.
    
    mem_heap_create_block(): poison newly allocated memory
    75c76dbb
mem0mem.c 14.9 KB