diff options
author | emaste <emaste@FreeBSD.org> | 2016-04-11 14:45:36 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-04-11 14:45:36 +0000 |
commit | c7d52025209c6c0c1673d61a541812bd623ad64f (patch) | |
tree | b450bad514604dda2594930b7525ce0df2130f10 /lib | |
parent | 51b775d978b5da735d95a043209152135543ca13 (diff) | |
download | FreeBSD-src-c7d52025209c6c0c1673d61a541812bd623ad64f.zip FreeBSD-src-c7d52025209c6c0c1673d61a541812bd623ad64f.tar.gz |
MFC r296685: libelf: correct byte count in cross-endian note translation
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libelf/libelf_convert.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libelf/libelf_convert.m4 b/lib/libelf/libelf_convert.m4 index 088510c..2e93a3a 100644 --- a/lib/libelf/libelf_convert.m4 +++ b/lib/libelf/libelf_convert.m4 @@ -810,6 +810,7 @@ libelf_cvt_NOTE_tof(char *dst, size_t dsz, char *src, size_t count, WRITE_WORD(dst, type); src += sizeof(Elf_Note); + count -= sizeof(Elf_Note); if (count < sz) sz = count; |