From feceaa596ebd1da9d8315c8ce74e45df4384da15 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 16 Oct 2018 14:39:03 +1030 Subject: PR23780, assertion abort in function display_raw_attribute PR 23780 * readelf.c (display_raw_attribute): Correct assertion. --- binutils/readelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binutils/readelf.c') 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; -- cgit v1.1