diff options
| author | George Rimar <grimar@accesssoftek.com> | 2016-10-10 10:10:09 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2016-10-10 10:10:09 +0000 |
| commit | 50188b2771c7ef81c4d439ac6133d51bdfa775a0 (patch) | |
| tree | 9235176f6fa110584a1a213af5dd1fd55cd6436a /lldb/packages/Python/lldbsuite/test/python_api/default-constructor | |
| parent | a9b79e666cabe80f08b4c7c80501de9b354fe1d1 (diff) | |
| download | bcm5719-llvm-50188b2771c7ef81c4d439ac6133d51bdfa775a0.tar.gz bcm5719-llvm-50188b2771c7ef81c4d439ac6133d51bdfa775a0.zip | |
[ELF] - Do not crash if common symbol alignment set to value greater than UINT32_MAX.
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: 283733
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/default-constructor')
0 files changed, 0 insertions, 0 deletions

