svn commit: r297823 - stable/10/lib/libelf
Ed Maste
emaste at FreeBSD.org
Mon Apr 11 14:45:37 UTC 2016
Author: emaste
Date: Mon Apr 11 14:45:36 2016
New Revision: 297823
URL: https://svnweb.freebsd.org/changeset/base/297823
Log:
MFC r296685: libelf: correct byte count in cross-endian note translation
Sponsored by: The FreeBSD Foundation
Modified:
stable/10/lib/libelf/libelf_convert.m4
Modified: stable/10/lib/libelf/libelf_convert.m4
==============================================================================
--- stable/10/lib/libelf/libelf_convert.m4 Mon Apr 11 14:44:18 2016 (r297822)
+++ stable/10/lib/libelf/libelf_convert.m4 Mon Apr 11 14:45:36 2016 (r297823)
@@ -810,6 +810,7 @@ libelf_cvt_NOTE_tof(char *dst, size_t ds
WRITE_WORD(dst, type);
src += sizeof(Elf_Note);
+ count -= sizeof(Elf_Note);
if (count < sz)
sz = count;
More information about the svn-src-all
mailing list