Fix an off-by-one error in the IN_RANGE macro used by readelf. Add another use of...
authorChristian Eggers <ceggers@gmx.de>
Wed, 6 Nov 2019 12:29:23 +0000 (12:29 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 6 Nov 2019 12:29:23 +0000 (12:29 +0000)
commit75802ccb60bfece30005d85de983181afe4e5306
tree8a1aa2544ebffc855072b83021e2095abd578e9f
parentb0a7971ad46c265bd979b17eba3d97a9a63187eb
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.
binutils/ChangeLog
binutils/readelf.c
This page took 0.028596 seconds and 4 git commands to generate.