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;
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to