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

Function FuzzReadData

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

Source from the content-addressed store, hash-verified

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