Commit 32730a9
committed
fix: add field count validation in AVRO_RECORD encoding
Validate that the number of fields matches between Arrow struct array,
Iceberg struct type, and Avro node before iterating to prevent
out-of-bounds access.
- Check struct_array.num_fields() matches avro_node->leaves()
- Check struct_type.fields().size() matches avro_node->leaves()
- Return InvalidArgument error with clear message on mismatch1 parent cc007f7 commit 32730a9
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
248 | 260 | | |
249 | 261 | | |
250 | 262 | | |
| |||
0 commit comments