Go to file
Guillem Jover e9529d9b4a nlist: Check that e_shnum and e_shentsize are within bounds
The e_shnum must not be 0, otherwise we will do a zero sized allocation
and further processing of the executable will lead to out of bounds
read/write accesses. The e_shentsize must be equal to sizeof(Elf_Shdr),
otherwise we will perform out of bounds read accesses on the shdr array.

Reported-by: Daniel Hodson <daniel@elttam.com.au>
Based-on-patch-by: Daniel Hodson <daniel@elttam.com.au>
Signed-off-by: Guillem Jover <guillem@hadrons.org>
2019-08-08 03:22:09 +02:00
include Provide a <sys/param.h> with MIN() and MAX() 2019-08-08 03:22:09 +02:00
man nlist: Check whether the nl argument is not NULL 2019-08-08 03:22:09 +02:00
src nlist: Check that e_shnum and e_shentsize are within bounds 2019-08-08 03:22:09 +02:00
test Don't require <grp.h> 2018-06-18 04:31:00 +02:00
.gitignore build: Set subdir-objects automake option 2013-10-21 05:33:08 +02:00
.gitlab-ci.yml build: Simplify gitlab CI configuration 2018-05-31 04:00:26 +02:00
autogen build: Switch to autotools 2012-05-29 04:35:55 +02:00
configure.ac build: Detect Windows/MinGW at configure time 2019-08-08 03:22:09 +02:00
COPYING Provide a <sys/param.h> with MIN() and MAX() 2019-08-08 03:22:09 +02:00
get-version build: Switch to autotools 2012-05-29 04:35:55 +02:00
Makefile.am build: Make git log invocation immune to local configuration 2015-11-30 23:02:23 +01:00
README Switch URLs from http or git to https 2016-02-13 08:46:35 +01:00
TODO man: Replace references to a.out(5) with elf(5) 2019-08-08 03:22:09 +02:00

libbsd - Utility functions from BSD systems

This library provides useful functions commonly found on BSD systems,
and lacking on others like GNU systems, thus making it easier to port
projects with strong BSD origins, without needing to embed the same
code over and over again on each project.


Releases
--------

  <https://libbsd.freedesktop.org/releases/>


Mailing List
------------

The subscription interface and web archives can be found at:

  <https://lists.freedesktop.org/mailman/listinfo/libbsd>

The mail address is:

  libbsd@lists.freedesktop.org


Source Repository
-----------------

The master repository can be browsed at:

  <https://cgit.freedesktop.org/libbsd>

and cloned from:

  <https://anongit.freedesktop.org/git/libbsd>