The patch includes two changes:
- Changed __asan_init to AsanInitInternal in AsanInitializer constructor - in order to start deactivated asan in case of asan dynamic library on Linux
- Disabled mallock checks for deactivated mode: alloc_dealloc_mismatch, allocator_may_return_null.
In fact, why are you changing allocator_may_return_null? It's not a check but rather a conscious decision on malloc behavior.