Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
9f83358
)
misc: asan: mark parsed elf memory as readable for ASan
37/26537/3
author
Benoît Ganne
<bganne@cisco.com>
Thu, 16 Apr 2020 08:57:41 +0000
(10:57 +0200)
committer
Dave Barach
<openvpp@barachs.net>
Wed, 22 Apr 2020 13:05:24 +0000
(13:05 +0000)
Type: fix
Change-Id: Ic7441a09bab2cabc7632ee502368584ac022f997
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vppinfra/elf.c
patch
|
blob
|
history
diff --git
a/src/vppinfra/elf.c
b/src/vppinfra/elf.c
index
a8c5d30
..
0b8aaa5
100644
(file)
--- 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);