diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-10-10 10:31:03 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-10-10 10:31:03 +0000 |
commit | 27e651d4f69527b12d02e1f02dd6da9f423f1d4d (patch) | |
tree | 541f2f409df34f51417f1bc6bb1a28933f3d7995 /lldb/packages/Python/lldbsuite/test/python_api | |
parent | a1b82456541f1dd47cf01d42754c227270b472b4 (diff) | |
download | bcm5719-llvm-27e651d4f69527b12d02e1f02dd6da9f423f1d4d.tar.gz bcm5719-llvm-27e651d4f69527b12d02e1f02dd6da9f423f1d4d.zip |
Recommit r283733 "[ELF] - Do not crash if common symbol alignment set to value greater than UINT32_MAX.
With fix: commit changes from InputFiles.cpp too.
Original commit message:
We have following code in lld, that truncates the alignment value to 32 bit. Big alignment in this case
may give result 0 and crash later.
template <class ELFT>
CommonInputSection<ELFT>::CommonInputSection(std::vector<DefinedCommon *> Syms)
: InputSection<ELFT>(nullptr, &Hdr, "") {
....
for (DefinedCommon *Sym : Syms) {
this->Alignment = std::max<uintX_t>(this->Alignment, Sym->Alignment);
...
}
}
Patch fixes the issue.
Differential revision: https://reviews.llvm.org/D25235
llvm-svn: 283738
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions