]> git.ipfire.org Git - thirdparty/libbsd.git/commit
nlist: Check whether sh_link is within bounds
authorGuillem Jover <guillem@hadrons.org>
Sat, 15 Jun 2019 12:33:32 +0000 (14:33 +0200)
committerGuillem Jover <guillem@hadrons.org>
Thu, 8 Aug 2019 01:22:09 +0000 (03:22 +0200)
commit24d1f4dd34cd86759673f736c16e671a6303f8a8
treef82eaf162b409e784bb6d66f4a2e0af20457415f
parente9529d9b4a7833049d34b4ec3bf018bdfe68c807
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>
src/nlist.c