EmilyMatt commented on code in PR #9397:
URL: https://github.com/apache/arrow-rs/pull/9397#discussion_r2797038717


##########
arrow-avro/src/reader/vlq.rs:
##########
@@ -97,6 +97,34 @@ fn read_varint_slow(buf: &[u8]) -> Option<(u64, usize)> {
     None
 }
 
+pub(crate) fn skip_varint(buf: &[u8]) -> Option<usize> {
+    if let Some(array) = buf.get(..10) {
+        return skip_varint_array(array.try_into().unwrap());

Review Comment:
   Wha if get returns less than 10 elements?
   buf.get(..10) can return less than that if the buf ends unexpectedly



-- 
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]

Reply via email to