mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue