Skip to content

Commit 7a018e2

Browse files
committed
GH-49617: [C++][CI] Validate all batches in IPC file fuzzer
When using the IPC stream reader for differential fuzzing against the IPC file reader, ensure we validate batches because otherwise we might be doing invalid memory accesses down the road.
1 parent 4e22f4d commit 7a018e2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

cpp/src/arrow/ipc/reader.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,6 +2807,7 @@ Status FuzzIpcFile(const uint8_t* data, int64_t size) {
28072807
// EOS
28082808
break;
28092809
}
2810+
RETURN_NOT_OK(ValidateFuzzBatch(batch));
28102811
batches.push_back(batch);
28112812
}
28122813
return IpcReadResult{batch_reader->schema(), batches};

0 commit comments

Comments
 (0)