From 7a018e2ba32b0a81048ed82c737f2faeac7d2122 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 30 Mar 2026 14:35:11 +0200 Subject: [PATCH] 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. --- cpp/src/arrow/ipc/reader.cc | 1 + testing | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/src/arrow/ipc/reader.cc b/cpp/src/arrow/ipc/reader.cc index 6aa502dc27a6..b79fbf6dd712 100644 --- a/cpp/src/arrow/ipc/reader.cc +++ b/cpp/src/arrow/ipc/reader.cc @@ -2807,6 +2807,7 @@ Status FuzzIpcFile(const uint8_t* data, int64_t size) { // EOS break; } + RETURN_NOT_OK(ValidateFuzzBatch(batch)); batches.push_back(batch); } return IpcReadResult{batch_reader->schema(), batches}; diff --git a/testing b/testing index afcdeba44006..015d80bd2012 160000 --- a/testing +++ b/testing @@ -1 +1 @@ -Subproject commit afcdeba44006e05b2b09c0971373b36bb263e0aa +Subproject commit 015d80bd2012a0629b8b269bb97dec4e96f28b6b