]> git.ipfire.org Git - thirdparty/libbsd.git/commit
nlist: Fix unbounded malloc() calls
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)
commit18662cadfcba39607bd5f379e19cdadce5194480
tree8a7d1268cb856649eecdf799302f6459e282e164
parentce53f7c25f64a694550886113154ce0b201be58f
nlist: Fix unbounded malloc() calls

There are a couple of malloc() calls with unbounded size arguments,
coming from the parsed file. We need to make sure the size is not
larger than the file being parsed, otherwise we might end up with
out of memory conditions.

Reported-by: Daniel Hodson <daniel@elttam.com.au>
Signed-off-by: Guillem Jover <guillem@hadrons.org>
src/nlist.c