PR23780, assertion abort in function display_raw_attribute
PR 23780 * readelf.c (display_raw_attribute): Correct assertion.
This commit is contained in:
parent
08ea4a7805
commit
feceaa596e
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2018-10-16 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 23780
|
||||
* readelf.c (display_raw_attribute): Correct assertion.
|
||||
|
||||
2018-10-15 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 23534
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue