MCPcopy Create free account
hub / github.com/apache/arrow / FuzzReadData

Function FuzzReadData

cpp/src/parquet/arrow/fuzz_internal.cc:102–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100namespace {
101
102Status FuzzReadData(std::unique_ptr<FileReader> reader) {
103 auto final_status = Status::OK();
104 for (int i = 0; i < reader->num_row_groups(); ++i) {
105 auto table_result = reader->ReadRowGroup(i);
106 if (table_result.ok()) {
107 // When reading returns successfully, the Arrow data should be structurally
108 // valid so that it can be read normally. If that is not the case, abort
109 // so that the error can be published by OSS-Fuzz.
110 auto table = *table_result;
111 ARROW_CHECK_OK(table->Validate());
112 final_status &= table->ValidateFull();
113 }
114 final_status &= table_result.status();
115 }
116 return final_status;
117}
118
119template <typename DType>
120Status FuzzReadTypedColumnIndex(const TypedColumnIndex<DType>* index) {

Callers 1

fuzz_internal.ccFile · 0.85

Calls 7

OKFunction · 0.50
num_row_groupsMethod · 0.45
ReadRowGroupMethod · 0.45
okMethod · 0.45
ValidateMethod · 0.45
ValidateFullMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected