svn commit: r296685 - head/contrib/elftoolchain/libelf

Ed Maste emaste at FreeBSD.org
Fri Mar 11 22:37:14 UTC 2016


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;


More information about the svn-src-head mailing list