Author: emaste
Date: Fri Mar 11 22:37:12 2016
New Revision: 296685
URL: https://svnweb.freebsd.org/changeset/base/296685
Log:
libelf: correct byte count in cross-endian note translation
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Modified:
head/contrib/elftoolchain/libelf/libelf_convert.m4
Modified: head/contrib/elftoolchain/libelf/libelf_convert.m4
==============================================================================
--- head/contrib/elftoolchain/libelf/libelf_convert.m4 Fri Mar 11 22:11:36
2016 (r296684)
+++ head/contrib/elftoolchain/libelf/libelf_convert.m4 Fri Mar 11 22:37:12
2016 (r296685)
@@ -1019,6 +1019,7 @@ _libelf_cvt_NOTE_tof(unsigned char *dst,
WRITE_WORD(dst, type);
src += sizeof(Elf_Note);
+ count -= sizeof(Elf_Note);
if (count < sz)
sz = count;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"