libsanitizer: Make delete safe via 'pointer_is_mine'
* libsanitizer/asan/asan_new_delete.cc: check pointers
before calling forwarding.
Part 2 for:
30255a5854a11a5e67c13b640d65a80411a34a39
This change will lead to possible failures inside glibc in cases of
delete'ing wild pointers.
In usual case ASan should handle this case and provide appropriate
backtrace and error report, but this mode is not compatible with
interceptor switching functional, so we explicitly disabling it.
Change-Id: Ic1f2a70bbc156420c27067bae8eb5097bbc477d6
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Signed-off-by: Slava Barinov <v.barinov@samsung.com>