We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2df0fa4 commit ae0b263Copy full SHA for ae0b263
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -4218,6 +4218,9 @@ Error BitcodeReader::parseGlobalIndirectSymbolRecord(
4218
4219
// Check whether we have enough values to read a partition name.
4220
if (OpNum + 1 < Record.size()) {
4221
+ // Check Strtab has enough values for the partition.
4222
+ if (Record[OpNum] + Record[OpNum + 1] > Strtab.size())
4223
+ return error("Malformed partition, too large.");
4224
NewGA->setPartition(
4225
StringRef(Strtab.data() + Record[OpNum], Record[OpNum + 1]));
4226
OpNum += 2;
0 commit comments