]> git.ipfire.org Git - thirdparty/libbsd.git/commit
nlist: Fix out-of-bounds read on strtab
authorGuillem Jover <guillem@hadrons.org>
Wed, 7 Aug 2019 20:58:30 +0000 (22:58 +0200)
committerGuillem Jover <guillem@hadrons.org>
Thu, 8 Aug 2019 01:22:52 +0000 (03:22 +0200)
commit9d917aad37778a9f4a96ba358415f077f3f36f3b
tree2982b7253ee08732da0f054f99259409da8c7dd7
parent18662cadfcba39607bd5f379e19cdadce5194480
nlist: Fix out-of-bounds read on strtab

When doing a string comparison for a symbol name from the string table,
we should make sure we do a bounded comparison, otherwise a non-NUL
terminated string might make the code read out-of-bounds.

Warned-by: coverity
src/nlist.c