diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-03-19 02:31:36 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-03-19 02:31:36 +0000 |
commit | cf0274fe9f59233533a1cc96887748298971c367 (patch) | |
tree | b9c80402e35d2d4f5ff38a750476ab4c3dd26915 /lib/libelf/elf_end.c | |
parent | e69491f952dc7794ee3a52e768fa6028c5be8e0b (diff) |
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 } |