libbsd/src
Guillem Jover 24d1f4dd34 nlist: Check whether sh_link is within bounds
The sh_link members should be >= e_shnum, otherwise we might do 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
..
hash Windows support for HASHFileChunk() 2018-06-18 04:31:00 +02:00
arc4random_linux.h build: Use __register_atfork() only if really available 2019-08-08 03:21:49 +02:00
arc4random_openbsd.h Update arc4random module from OpenBSD and LibreSSL 2015-11-30 23:48:50 +01:00
arc4random_uniform.c Update arc4random module from OpenBSD and LibreSSL 2015-11-30 23:48:50 +01:00
arc4random_unix.h build: Use __register_atfork() only if really available 2019-08-08 03:21:49 +02:00
arc4random_win.h Add Windows support for getentropy() and arc4random() 2018-05-21 04:48:32 +02:00
arc4random.c Correct Clang feature detection 2018-06-18 04:31:00 +02:00
arc4random.h Add Windows support for getentropy() and arc4random() 2018-05-21 04:48:32 +02:00
bsd_getopt.c Constify bsd_getopt(3) arguments 2011-06-08 02:10:38 +02:00
chacha_private.h Update few RCS keyword contents to match BSD originals 2018-05-21 04:47:28 +02:00
closefrom.c Add support for GNU/kFreeBSD for closefrom() and getentropy() 2015-12-02 03:32:13 +01:00
dehumanize_number.c Fix dehumanize_number() to correctly detect overflows 2013-10-21 05:29:37 +02:00
err.c Base errc() and warnc() on vwarnc() and verrc() respectively 2012-05-29 04:36:23 +02:00
expand_number.c Remove RCSID tags 2017-06-19 03:17:21 +02:00
explicit_bzero.c Protect C language extensions with two leading and trailing underscores 2018-06-18 04:31:00 +02:00
fgetln.c Fix typo in fgetln() linker warning 2018-05-21 04:48:32 +02:00
fgetwln.c Deprecate fgetwln() 2018-05-21 04:48:32 +02:00
flopen.c flopen: Add missing <fcntl.h> include 2018-06-17 20:23:48 +02:00
fmtcheck.c Update fmtcheck() from NetBSD 2018-05-21 04:47:28 +02:00
fparseln.c Remove RCSID tags 2017-06-19 03:17:21 +02:00
fpurge.c test: Move and activate fpurge() test case from module to a dedicated file 2015-09-23 07:59:34 +02:00
funopen.c Do not provide funopen() on musl 2017-06-05 05:52:07 +02:00
getbsize.c Add getbsize() function 2014-07-15 10:57:42 +02:00
getentropy_aix.c Update getentropy() code from OpenBSD 2018-05-21 04:47:28 +02:00
getentropy_bsd.c Update getentropy() code from OpenBSD 2018-05-21 04:47:28 +02:00
getentropy_hpux.c Update getentropy() code from OpenBSD 2018-05-21 04:47:28 +02:00
getentropy_hurd.c Update getentropy() code from OpenBSD 2018-05-21 04:47:28 +02:00
getentropy_linux.c Update getentropy() code from OpenBSD 2018-05-21 04:47:28 +02:00
getentropy_osx.c Update getentropy() code from OpenBSD 2018-05-21 04:47:28 +02:00
getentropy_solaris.c Update getentropy() code from OpenBSD 2018-05-21 04:47:28 +02:00
getentropy_win.c Add Windows support for getentropy() and arc4random() 2018-05-21 04:48:32 +02:00
getentropy.c Add Windows support for getentropy() and arc4random() 2018-05-21 04:48:32 +02:00
getpeereid.c Fix getpeereid() compilation on Solaris 2013-05-27 04:05:17 +02:00
heapsort.c Update heapsort() from OpenBSD 2018-05-21 04:47:28 +02:00
humanize_number.c Update humanize_number() from FreeBSD 2018-05-21 04:47:28 +02:00
inet_net_pton.c Windows support for inet_net_pton() 2018-06-18 04:31:00 +02:00
libbsd-ctor.pc.in Switch URLs from http or git to https 2016-02-13 08:46:35 +01:00
libbsd-overlay.pc.in Switch URLs from http or git to https 2016-02-13 08:46:35 +01:00
libbsd.map Fix strnvis() and strnunvis() NetBSD ABI break 2018-05-22 16:07:42 +02:00
libbsd.pc.in Switch URLs from http or git to https 2016-02-13 08:46:35 +01:00
local-elf.h Fix build for openrisc with uClibc 2018-04-04 02:29:15 +02:00
local-link.h build: Support platforms without symbol versioning 2019-08-08 03:22:09 +02:00
Makefile.am build: Disable CRT warnings on Windows 2019-08-08 03:22:09 +02:00
merge.c Remove RCSID tags 2017-06-19 03:17:21 +02:00
nlist.c nlist: Check whether sh_link is within bounds 2019-08-08 03:22:09 +02:00
pidfile.c Update pidfile module from FreeBSD 2018-05-21 04:47:28 +02:00
progname.c progname: Port to Windows 2018-03-06 01:10:14 +01:00
radixsort.c Update few RCS keyword contents to match BSD originals 2018-05-21 04:47:28 +02:00
readpassphrase.c Update readpassphrase() from OpenBSD 2018-05-21 04:47:28 +02:00
reallocarray.c Avoid left shift overflow in reallocarray 2015-09-23 07:59:34 +02:00
reallocf.c Remove RCSID tags 2017-06-19 03:17:21 +02:00
setmode.c Remove RCSID tags 2017-06-19 03:17:21 +02:00
setproctitle_ctor.c Protect C language extensions with two leading and trailing underscores 2018-06-18 04:31:00 +02:00
setproctitle.c build: Abstract symbol versioning via new libbsd_symver_* macros 2019-08-08 03:22:09 +02:00
stringlist.c Remove RCSID tags 2017-06-19 03:17:21 +02:00
strlcat.c Make strlcpy()/strlcat() slightly easier to read 2017-06-19 03:17:21 +02:00
strlcpy.c Make strlcpy()/strlcat() slightly easier to read 2017-06-19 03:17:21 +02:00
strmode.c Remove RCSID tags 2017-06-19 03:17:21 +02:00
strnstr.c Remove RCSID tags 2017-06-19 03:17:21 +02:00
strtoi.c Import strtoi() and strtou() functions from NetBSD 2018-05-21 04:47:28 +02:00
strtonum.c Switch strtonum() implementation from strtoll() to strtoi() 2018-05-21 04:48:32 +02:00
strtou.c Import strtoi() and strtou() functions from NetBSD 2018-05-21 04:47:28 +02:00
timeconv.c Remove RCSID tags 2017-06-19 03:17:21 +02:00
unvis.c build: Abstract symbol versioning via new libbsd_symver_* macros 2019-08-08 03:22:09 +02:00
vis.c build: Abstract symbol versioning via new libbsd_symver_* macros 2019-08-08 03:22:09 +02:00
wcslcat.c Remove RCSID tags 2017-06-19 03:17:21 +02:00
wcslcpy.c Remove RCSID tags 2017-06-19 03:17:21 +02:00