From 350f6d6ef4955b8acb1ccfacd17ad5976398951c Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Thu, 16 Apr 2020 10:57:41 +0200 Subject: misc: asan: mark parsed elf memory as readable for ASan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Type: fix Change-Id: Ic7441a09bab2cabc7632ee502368584ac022f997 Signed-off-by: Benoît Ganne --- src/vppinfra/elf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/vppinfra/elf.c b/src/vppinfra/elf.c index a8c5d307cdf..0b8aaa5d003 100644 --- a/src/vppinfra/elf.c +++ b/src/vppinfra/elf.c @@ -1357,6 +1357,8 @@ elf_read_file (elf_main_t * em, char *file_name) goto done; } + CLIB_MEM_UNPOISON (data, mmap_length); + em->file_name = file_name; error = elf_parse (em, data, mmap_length); -- cgit 1.2.3-korg