libsanitizer: Make malloc/realloc/free safe via 'pointer_is_mine' 90/210990/3
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 18 Jul 2019 14:47:42 +0000 (17:47 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Sat, 27 Jul 2019 16:45:13 +0000 (16:45 +0000)
commit30255a5854a11a5e67c13b640d65a80411a34a39
tree8126b63a10bfeac301968bd955723db4e6de85f0
parent89fa22d76eef9205fc845168e4a4ec5812bf2a47
libsanitizer: Make malloc/realloc/free safe via 'pointer_is_mine'

      * libsanitizer/asan/asan_malloc_linux.cc: check pointers
      before calling forwarding.

This change will lead to possible failures inside glibc in cases of free()'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: I8fc40aad4d9e6094301f6b3f3060b99140a191da
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
libsanitizer/asan/asan_malloc_linux.cc