[llvm-readelf/obj] - Fix the possible crash when dumping group sections.
authorGeorgii Rymar <grimar@accesssoftek.com>
Mon, 23 Nov 2020 08:53:40 +0000 (11:53 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Mon, 23 Nov 2020 10:05:12 +0000 (13:05 +0300)
commit76a626b2061bc8a33656a49ebcabbfa75c317d4c
tree71b3ffd8ae14018d8fda1eb56447c486af277a76
parent48d7cc6ae23b0e5b1922457462d0f6e4582a1ae7
[llvm-readelf/obj] - Fix the possible crash when dumping group sections.

It is possible to trigger a crash/misbehavior when the st_name field of
the signature symbol goes past the end of the string table.

This patch fixes it.

Differential revision: https://reviews.llvm.org/D91943
llvm/test/tools/llvm-readobj/ELF/groups.test
llvm/tools/llvm-readobj/ELFDumper.cpp