diff options
author | emaste <emaste@FreeBSD.org> | 2016-03-11 22:37:12 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-03-11 22:37:12 +0000 |
commit | 4d2c154bf803bf7363ee36b0d18f0668d0a2a024 (patch) | |
tree | 9e9724e9062e76e8e7014c1af0750a61b3fc92b0 /contrib/elftoolchain | |
parent | afcccceb429d34ed780e6cbd25edb9ae9e11347c (diff) | |
download | FreeBSD-src-4d2c154bf803bf7363ee36b0d18f0668d0a2a024.zip FreeBSD-src-4d2c154bf803bf7363ee36b0d18f0668d0a2a024.tar.gz |
libelf: correct byte count in cross-endian note translation
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'contrib/elftoolchain')
-rw-r--r-- | contrib/elftoolchain/libelf/libelf_convert.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/elftoolchain/libelf/libelf_convert.m4 b/contrib/elftoolchain/libelf/libelf_convert.m4 index 9f99f1e..0eddbe7 100644 --- a/contrib/elftoolchain/libelf/libelf_convert.m4 +++ b/contrib/elftoolchain/libelf/libelf_convert.m4 @@ -1019,6 +1019,7 @@ _libelf_cvt_NOTE_tof(unsigned char *dst, size_t dsz, unsigned char *src, WRITE_WORD(dst, type); src += sizeof(Elf_Note); + count -= sizeof(Elf_Note); if (count < sz) sz = count; |