PR28674, objdump crash
authorAlan Modra <amodra@gmail.com>
Thu, 9 Dec 2021 21:57:58 +0000 (08:27 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 9 Dec 2021 22:03:12 +0000 (08:33 +1030)
commitb243230f64fb4db9a16ef88ec5bd3e3f48f1fe41
tree6650222627bb5c7e8d2811b2235d0aafdb4898af
parentb6d1f70cc7e948de99f91fc44d07c44686275fc4
PR28674, objdump crash

Not returning an error indication here leaves the attribute
uninitialised, which then leads to intemperate behaviour.

PR 28674
* dwarf2.c (read_attribute_value): Return NULL on trying to read
past end of attributes.
bfd/dwarf2.c