Skip to content

Commit 9e413fa

Browse files
authored
GH-49617: [C++][CI] Validate all batches in IPC file fuzzer (#49618)
### Rationale for this change 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. ### Are these changes tested? By additional fuzz regression file. ### Are there any user-facing changes? No. * GitHub Issue: #49617 Authored-by: Antoine Pitrou <antoine@python.org> Signed-off-by: Antoine Pitrou <antoine@python.org>
1 parent 61ef672 commit 9e413fa

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)