diff options
author | Mark Wielaard <mark@klomp.org> | 2021-10-06 23:37:42 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-10-06 23:41:00 +0200 |
commit | 3d9f12883d0c131bd4ab6045e1f60d3fe6d150ea (patch) | |
tree | da305e8657570f2a4238a9aa0d44f812480efddb /src/ChangeLog | |
parent | 260a3105cc0e378882110ba787cd58815183c454 (diff) | |
download | elfutils-3d9f12883d0c131bd4ab6045e1f60d3fe6d150ea.tar.gz |
elflint.c: Don't dereference databits if bad
elflint.c: In function 'check_sections':
elflint.c:4105:48: error: null pointer dereference [-Werror=null-dereference]
4105 | idx < databits->d_size && ! bad;
| ~~~~~~~~^~~~~~~~
Fix this by testing for ! bad first.
Reported-by: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'src/ChangeLog')
-rw-r--r-- | src/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 87b3dd46..316bcb6d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2021-10-06 Mark Wielaard <mark@klomp.org> + + * elflint.c (check_sections): Don't dereference databits if bad. + 2021-09-09 Dmitry V. Levin <ldv@altlinux.org> * findtextrel.c: Include "libeu.h". |