Date: Wed, 21 Jul 2010 10:25:02 +0000 (UTC) From: Kai Wang <kaiw@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libelf _libelf.h elf_data.c elf_scn.c libelf_convert.m4 libelf_ehdr.c libelf_phdr.c libelf_xlate.c Message-ID: <201007211834.o6LIYdKX099871@repoman.freebsd.org>
index | next in thread | raw e-mail
kaiw 2010-07-21 10:25:02 UTC
FreeBSD src repository
Modified files:
lib/libelf _libelf.h elf_data.c elf_scn.c
libelf_convert.m4 libelf_ehdr.c
libelf_phdr.c libelf_xlate.c
Log:
SVN rev 210338 on 2010-07-21 10:25:02Z by kaiw
Perform additional checks when translating between file and memory
representations of ELF types.
The ELF(3) API allows applications to request a conversion that is
`in-place', i.e., with source and destinations data buffers being
the same. However, the file and memory sizes of ELF sections that
have additional internal structure, such as those of type `Elf_Note',
or `Elf_GNU_Hash_Header', can be determined only known after the
type-specific headers that comprise the first few words in these
sections are read and translated.
Pass in the size of destination buffer to type translation routines
in "libelf_convert.m4" and have these routines return an error code
if the translated data would not fit inside the destination buffer.
Obtained from: elftoolchain
MFC after: 1 month
Revision Changes Path
1.4 +2 -2 src/lib/libelf/_libelf.h
1.4 +9 -4 src/lib/libelf/elf_data.c
1.4 +3 -2 src/lib/libelf/elf_scn.c
1.5 +84 -48 src/lib/libelf/libelf_convert.m4
1.3 +5 -4 src/lib/libelf/libelf_ehdr.c
1.3 +2 -2 src/lib/libelf/libelf_phdr.c
1.4 +9 -3 src/lib/libelf/libelf_xlate.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007211834.o6LIYdKX099871>
