diff options
author | Christian Eggers <ceggers@gmx.de> | 2019-11-06 12:29:23 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-11-06 12:29:23 +0000 |
commit | 75802ccb60bfece30005d85de983181afe4e5306 (patch) | |
tree | 8a1aa2544ebffc855072b83021e2095abd578e9f /binutils/ChangeLog | |
parent | ld: Fix printed sizes in map file (diff) | |
download | binutils-gdb-75802ccb60bfece30005d85de983181afe4e5306.tar.gz binutils-gdb-75802ccb60bfece30005d85de983181afe4e5306.tar.bz2 binutils-gdb-75802ccb60bfece30005d85de983181afe4e5306.zip |
Fix an off-by-one error in the IN_RANGE macro used by readelf. Add another use of the macro.
* readelf.c (IN_RANGE): Rename parameter OFF to NELEM. Add
comment. Catch potential integer overflow and fix off by one
error whilst checking reloc location against section size.
(apply_relocations): Use IN_RANGE macro.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 0f5d06b5a69..61a2e0020cc 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,10 @@ +2019-11-06 Christian Eggers <ceggers@gmx.de> + + * readelf.c (IN_RANGE): Rename parameter OFF to NELEM. Add + comment. Catch potential integer overflow and fix off by one + error whilst checking reloc location against section size. + (apply_relocations): Use IN_RANGE macro. + 2019-11-04 Fangrui Song <maskray@google.com> * objcopy.c (enum option_values): Add OPTION_KEEP_SECTION. |