Alan Modra
2018-10-16 06:16:47 UTC
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index d41894fa21..250108c71e 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-16 Alan Modra <***@gmail.com>
+
+ PR 23780
+ * readelf.c (display_raw_attribute): Correct assertion.
+
2018-10-15 Alan Modra <***@gmail.com>
PR 23534
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 41f55ee4ed..fff50c6ad0 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;
index d41894fa21..250108c71e 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-16 Alan Modra <***@gmail.com>
+
+ PR 23780
+ * readelf.c (display_raw_attribute): Correct assertion.
+
2018-10-15 Alan Modra <***@gmail.com>
PR 23534
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 41f55ee4ed..fff50c6ad0 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;
--
Alan Modra
Australia Development Lab, IBM
Alan Modra
Australia Development Lab, IBM