Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Apr 2016 14:45:36 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r297823 - stable/10/lib/libelf
Message-ID:  <201604111445.u3BEja84080131@repo.freebsd.org>

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



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