Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Mar 2016 22:37:12 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r296685 - head/contrib/elftoolchain/libelf
Message-ID:  <201603112237.u2BMbCGW089105@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603112237.u2BMbCGW089105>