iemejia commented on code in PR #3862:
URL: https://github.com/apache/avro/pull/3862#discussion_r3567430613
##########
lang/ruby/lib/avro/io.rb:
##########
@@ -481,11 +546,14 @@ def skip_union(writers_schema, decoder)
end
def skip_array(writers_schema, decoder)
- skip_blocks(decoder) { skip_data(writers_schema.items, decoder) }
+ min_bytes = min_bytes_per_element(writers_schema.items)
+ skip_blocks(decoder, min_bytes) { skip_data(writers_schema.items,
decoder) }
Review Comment:
Already addressed in commit db48317693: skip_union now applies the same `[0,
schemas.size)` bounds check as read_union and raises AvroError on a
negative/out-of-range index.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]