aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-10-16 14:39:03 +1030
committerAlan Modra <amodra@gmail.com>2018-10-16 16:41:57 +1030
commitfeceaa596ebd1da9d8315c8ce74e45df4384da15 (patch)
tree8c98953cfb3fb7c9df898e2fc1054b394e819c17 /binutils/readelf.c
parent08ea4a7805705668c2c4c63b858b6641d052f7e7 (diff)
downloadgdb-feceaa596ebd1da9d8315c8ce74e45df4384da15.zip
gdb-feceaa596ebd1da9d8315c8ce74e45df4384da15.tar.gz
gdb-feceaa596ebd1da9d8315c8ce74e45df4384da15.tar.bz2
PR23780, assertion abort in function display_raw_attribute
PR 23780 * readelf.c (display_raw_attribute): Correct assertion.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 41f55ee..fff50c6 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -15221,7 +15221,7 @@ display_raw_attribute (unsigned char * p, unsigned char const * const end)
unsigned long addr = 0;
size_t bytes = end - p;
- assert (end > p);
+ assert (end >= p);
while (bytes)
{
int j;