misc: asan: do not poison memory after munmap() 39/26639/2
authorBenoît Ganne <bganne@cisco.com>
Wed, 22 Apr 2020 07:02:48 +0000 (09:02 +0200)
committerDave Barach <openvpp@barachs.net>
Wed, 22 Apr 2020 13:03:08 +0000 (13:03 +0000)
It is a bad idea to poison memory after munmap because the address space
can be reused (eg. for global data of dlopen()ed object) and ASan model
allows access by default.
Moreover, access to a stale address space will fault.

Type: fix

Change-Id: I356de422f255447d9d50a3a71fb0c2eaa790d731
Signed-off-by: Benoît Ganne <bganne@cisco.com>

No differences found