freebsd-skq/lib/libelf
emaste 227bb2b2ea libelf: Improve ELF header validation
Avoid integer overflow and reading past EOF.

MFC of r276427, r276443, r277249 from contrib/elftoolchain.
2015-01-23 04:07:07 +00:00
..
_libelf.h Move helper functions _libelf_ar_get_{name,number,string}() and 2010-07-21 12:54:34 +00:00
elf_begin.3 Remove repeated words. 2012-06-05 18:19:52 +00:00
elf_begin.c * Note that ar(1) archives may also be opened using elf_memory(3). 2010-07-21 13:18:57 +00:00
elf_cntl.3 Fix some duplicate-word typos in manpages. 2011-03-02 21:59:53 +00:00
elf_cntl.c
elf_data.c - Make sure to set an error code when trying to obtain a data descriptor for 2013-02-19 03:23:13 +00:00
elf_end.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_end.c
elf_errmsg.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_errmsg.c Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
elf_errno.c
elf_fill.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_fill.c
elf_flag.c
elf_flagdata.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_getarhdr.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_getarhdr.c
elf_getarsym.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_getarsym.c
elf_getbase.3 * Improve compatibility with existing application code by permitting the 2010-06-13 10:58:50 +00:00
elf_getbase.c * Improve compatibility with existing application code by permitting the 2010-06-13 10:58:50 +00:00
elf_getdata.3 - Make sure to set an error code when trying to obtain a data descriptor for 2013-02-19 03:23:13 +00:00
elf_getident.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_getident.c
elf_getphdrnum.3 mdoc: sort prologue macros. 2012-03-26 19:23:57 +00:00
elf_getphnum.3 Remove superfluous paragraph macro. 2012-03-25 12:13:24 +00:00
elf_getscn.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_getshdrnum.3 mdoc: sort prologue macros. 2012-03-26 19:23:57 +00:00
elf_getshdrstrndx.3 mdoc: sort prologue macros. 2012-03-26 19:23:57 +00:00
elf_getshnum.3 Remove superfluous paragraph macro. 2012-03-25 12:13:24 +00:00
elf_getshstrndx.3 Remove superfluous paragraph macro. 2012-03-25 12:13:24 +00:00
elf_hash.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_hash.c
elf_kind.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_kind.c
elf_memory.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_memory.c
elf_next.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_next.c
elf_phnum.c * Deprecate elf_getshnum(), elf_getphnum() and elf_getshstrndx() in 2010-07-21 12:14:50 +00:00
elf_rand.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_rand.c
elf_rawfile.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_rawfile.c
elf_scn.c libelf: Improve ELF header validation 2015-01-23 04:07:07 +00:00
elf_shnum.c * Deprecate elf_getshnum(), elf_getphnum() and elf_getshstrndx() in 2010-07-21 12:14:50 +00:00
elf_shstrndx.c * Deprecate elf_getshnum(), elf_getphnum() and elf_getshstrndx() in 2010-07-21 12:14:50 +00:00
elf_strptr.3 General mdoc(7) and typo fixes. 2012-05-11 20:06:46 +00:00
elf_strptr.c
elf_types.m4 Add support for translating sections of type ELF_T_GNUHASH. 2010-07-21 10:57:22 +00:00
elf_update.3 - change "is is" to "is" or "it is" 2011-10-16 14:30:28 +00:00
elf_update.c Merge part of r1712 from elftoolchain, making it possible to resize ELF 2013-02-24 15:15:50 +00:00
elf_version.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
elf_version.c
elf.3 mdoc: minor Bl improvements. 2012-06-02 08:47:26 +00:00
gelf_cap.c
gelf_checksum.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_checksum.c
gelf_dyn.c
gelf_ehdr.c Bug fix: when updating headers using the gelf_update_*() functions, 2010-07-21 08:58:52 +00:00
gelf_fsize.3 - Document that the *fsize() functions return a size of 1 for Elf 2010-07-21 10:39:29 +00:00
gelf_fsize.c
gelf_getcap.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_getclass.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_getclass.c
gelf_getdyn.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_getehdr.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_getmove.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_getphdr.3 General mdoc(7) and typo fixes. 2012-05-11 20:06:46 +00:00
gelf_getrel.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_getrela.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_getshdr.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_getsym.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_getsyminfo.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_getsymshndx.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_move.c
gelf_newehdr.3 General mdoc(7) and typo fixes. 2012-05-11 20:06:46 +00:00
gelf_newphdr.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_phdr.c Bug fix: when updating headers using the gelf_update_*() functions, 2010-07-21 08:58:52 +00:00
gelf_rel.c
gelf_rela.c
gelf_shdr.c Bug fix: when updating headers using the gelf_update_*() functions, 2010-07-21 08:58:52 +00:00
gelf_sym.c
gelf_syminfo.c
gelf_symshndx.c
gelf_update_ehdr.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf_xlate.c
gelf_xlatetof.3 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
gelf.3 mdoc: minor Bl improvements. 2012-06-02 08:47:26 +00:00
gelf.h
libelf_align.c Changes for supporting GNU Hash sections. 2010-07-21 09:56:42 +00:00
libelf_allocate.c
libelf_ar_util.c Move helper functions _libelf_ar_get_{name,number,string}() and 2010-07-21 12:54:34 +00:00
libelf_ar.c Move helper functions _libelf_ar_get_{name,number,string}() and 2010-07-21 12:54:34 +00:00
libelf_checksum.c
libelf_convert.m4 Remove duplicate "in". 2011-03-01 11:47:51 +00:00
libelf_data.c Add support to the ARM platform specific section types. 2013-08-31 18:13:20 +00:00
libelf_ehdr.c Perform additional checks when translating between file and memory 2010-07-21 10:25:02 +00:00
libelf_extended.c
libelf_fsize.m4 - Document that the *fsize() functions return a size of 1 for Elf 2010-07-21 10:39:29 +00:00
libelf_msize.m4 Changes for supporting GNU Hash sections. 2010-07-21 09:56:42 +00:00
libelf_phdr.c Perform additional checks when translating between file and memory 2010-07-21 10:25:02 +00:00
libelf_shdr.c
libelf_xlate.c Perform additional checks when translating between file and memory 2010-07-21 10:25:02 +00:00
libelf.c
libelf.h * Deprecate elf_getshnum(), elf_getphnum() and elf_getshstrndx() in 2010-07-21 12:14:50 +00:00
Makefile Don't ever build files depending on the directory where they are placed in. 2012-07-24 16:03:28 +00:00
README
Version.map * Deprecate elf_getshnum(), elf_getphnum() and elf_getshstrndx() in 2010-07-21 12:14:50 +00:00

# $FreeBSD$
# $NetBSD$

libelf: a BSD-licensed implementation of the ELF(3)/GELF(3) API.

Documentation:
 * Manual page elf.3 contains an overview of the library.  Other
   manual pages document individual APIs in the library.
 * A tutorial "libelf by Example" is available at:
   http://people.freebsd.org/~jkoshy/download/libelf/article.html
	
For ongoing development please see http://elftoolchain.sourceforge.net/