libelf: correct byte count in cross-endian note translation
MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
6078c8e049
commit
a87342e849
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user