Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Fixed vulnerability.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Sep 20, 2021
1 parent 38361d2 commit d0f3a62
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/array/specification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ pub fn check_offsets_and_utf8<O: Offset>(offsets: &[O], values: &[u8]) -> usize
let end = window[1].to_usize();
assert!(end <= values.len());
let slice = unsafe { std::slice::from_raw_parts(values.as_ptr().add(start), end - start) };
#[cfg(not(feature = "simdutf8"))]
simdutf8::basic::from_utf8(slice).expect("A non-utf8 string was passed.");
});
len
Expand Down

0 comments on commit d0f3a62

Please sign in to comment.