]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
asan: assert (addr_ranges) <= (start)
authorAlan Modra <amodra@gmail.com>
Wed, 3 Nov 2021 04:20:18 +0000 (14:50 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 3 Nov 2021 05:13:23 +0000 (15:43 +1030)
commit359c74415c2b78bf2b2be3bd3e013d78f298350d
treecb7d3c792821f5529c44cced0e363ca1f8d7cf54
parent0a129eb19a773d930d60b084209570f663db2053
asan: assert (addr_ranges) <= (start)

That assert would be more obvious if it were reported as
"addr_ranges <= end_ranges".  Fix that by using the obvious variable
in the final loop.  Stop the assertion by using a signed comparison:
It's possible for the rounding up of the arange pointer to exceed the
end of the block when the block size is fuzzed.

* dwarf.c (display_debug_aranges): Use "end_ranges" in loop
displaying ranges rather that "start".  Simplify rounding up
to 2*address_size boundary.  Use signed comparison in loop.
binutils/dwarf.c