diff options
author | 2019-03-19 02:31:35 +0000 | |
---|---|---|
committer | 2019-03-19 02:31:35 +0000 | |
commit | e219834f801e78888637194a4612bc3229c35e9c (patch) | |
tree | ece88840597fee628eb13e775baea2f8321be30b /lib/libelf/elf_end.c | |
parent | Nuke a couple of XXX comments. (diff) | |
download | wireguard-openbsd-e219834f801e78888637194a4612bc3229c35e9c.tar.xz wireguard-openbsd-e219834f801e78888637194a4612bc3229c35e9c.zip |
update libelf from elftoolchain r3669 to r3714
includes changes to address problems sunil@ found with fuzzing
original diff from and ok sunil@
Diffstat (limited to 'lib/libelf/elf_end.c')
-rw-r--r-- | lib/libelf/elf_end.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libelf/elf_end.c b/lib/libelf/elf_end.c index fc32ddd5d17..84820feb302 100644 --- a/lib/libelf/elf_end.c +++ b/lib/libelf/elf_end.c @@ -34,7 +34,7 @@ #include <sys/mman.h> #endif -ELFTC_VCSID("$Id: elf_end.c,v 1.1 2019/02/01 05:27:37 jsg Exp $"); +ELFTC_VCSID("$Id: elf_end.c,v 1.2 2019/03/19 02:31:35 jsg Exp $"); int elf_end(Elf *e) @@ -81,7 +81,7 @@ elf_end(Elf *e) free(e->e_rawfile); #if ELFTC_HAVE_MMAP else if (e->e_flags & LIBELF_F_RAWFILE_MMAP) - (void) munmap(e->e_rawfile, e->e_rawsize); + (void) munmap(e->e_rawfile, (size_t) e->e_rawsize); #endif } |