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.
Paths
| Differential D91943
[llvm-readelf/obj] - Fix the possible crash when dumping group sections. ClosedPublic Authored by grimar on Nov 23 2020, 12:56 AM.
Details Summary It is possible to trigger a crash/misbehavior when the st_name field of This patch fixes it.
Diff Detail
Event Timelinegrimar added a parent revision: D91867: [llvm-readobj] - Stop using `unwrapOrError` in `DumpStyle<ELFT>::getGroups()`.
This revision is now accepted and ready to land.Nov 23 2020, 2:03 AM Closed by commit rG76a626b2061b: [llvm-readelf/obj] - Fix the possible crash when dumping group sections. (authored by grimar). · Explain WhyNov 23 2020, 2:05 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 307002 llvm/test/tools/llvm-readobj/ELF/groups.test
llvm/tools/llvm-readobj/ELFDumper.cpp
|
I'm confused. Why do we need to do this, rather than just specifying an arbitrarily large StName value greater than the string table size?