diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-10-17 11:15:12 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-10-17 11:15:12 +0000 |
commit | 21cd1a6fa98923437077b008416cd34c51be042c (patch) | |
tree | 251d8c58bbe0eb788fa0832c04bd7916ac69305d /lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestCommandInterpreterAPI.py | |
parent | 65807f899b4616d3961e14e2cf4a7330eade19de (diff) | |
download | bcm5719-llvm-21cd1a6fa98923437077b008416cd34c51be042c.tar.gz bcm5719-llvm-21cd1a6fa98923437077b008416cd34c51be042c.zip |
[ELF] - Added testcase relative to D25090.
It was requested on review for https://reviews.llvm.org/D25090 to add testcase in lld.
Spec says (http://www.sco.com/developers/gabi/1998-04-29/ch4.eheader.html) :
e_shnum
This member holds the number of entries in the section header table.
Thus the product of e_shentsize and e_shnum gives the section header table's size in bytes.
If a file has no section header table, e_shnum holds the value zero.
In case revealed, broken input did not contain zero in this field.
LLD then could crash when proccessed sections (returned array has incorrect size):
template <class ELFT> void SharedFile<ELFT>::parseSoName() {
...
for (const Elf_Shdr &Sec : Obj.sections()) {
...
llvm-svn: 284375
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestCommandInterpreterAPI.py')
0 files changed, 0 insertions, 0 deletions