summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/elf.c
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-04-16 10:57:41 +0200
committerDave Barach <openvpp@barachs.net>2020-04-22 13:05:24 +0000
commit350f6d6ef4955b8acb1ccfacd17ad5976398951c (patch)
treeaeb5dc7295de5a1b342ea57dae149e8b3e172f83 /src/vppinfra/elf.c
parent9f83358d4eec9dbd5f74b0ff65d1c0d309bd5dda (diff)
misc: asan: mark parsed elf memory as readable for ASan
Type: fix Change-Id: Ic7441a09bab2cabc7632ee502368584ac022f997 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vppinfra/elf.c')
-rw-r--r--src/vppinfra/elf.c2
1 files changed, 2 insertions, 0 deletions
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);