summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-03-01 10:12:49 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-03-01 10:12:49 +0000
commitc84ca256d30272cf958d2f94357b58d872b983bf (patch)
treeeb5f2f052440a59568f3495deefd03f065472e91
parente2b2c70bc19bc7d1e97af49490618e7aa238711f (diff)
downloadbcm5719-llvm-c84ca256d30272cf958d2f94357b58d872b983bf.tar.gz
bcm5719-llvm-c84ca256d30272cf958d2f94357b58d872b983bf.zip
[ELF] - Fixed crash in GnuHashTableSection.
r296570 intorduced crash revealed by gnu-hash-table.s which crashed for me. Reason was use of uninitialized NBuckets variable. llvm-svn: 296597
-rw-r--r--lld/ELF/SyntheticSections.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/SyntheticSections.h b/lld/ELF/SyntheticSections.h
index 5d2b56470d1..a6b794bcfdd 100644
--- a/lld/ELF/SyntheticSections.h
+++ b/lld/ELF/SyntheticSections.h
@@ -458,7 +458,7 @@ private:
std::vector<Entry> Symbols;
size_t MaskWords;
- size_t NBuckets;
+ size_t NBuckets = 0;
size_t Size = 0;
};
OpenPOWER on IntegriCloud