Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions c++/src/Reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1588,6 +1588,14 @@ namespace orc {
throw ParseError(msg.str());
}

if (stream.has_kind() && stream.column() >= selectedColumns.size()) {
std::stringstream msg;
msg << "Malformed stream meta at stream index " << i << " in stripe " << stripe
<< ": column=" << stream.column() << " is out of range, the file has "
<< selectedColumns.size() << " columns";
throw ParseError(msg.str());
}

if (stream.has_kind() && selectedColumns[stream.column()]) {
const auto& kind = stream.kind();
if (kind == proto::Stream_Kind_DATA || kind == proto::Stream_Kind_DICTIONARY_DATA ||
Expand Down
Loading