You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let chunk_length = u32::from_be_bytes(buf_chunk_length)asusize;
657
+
let bytes_left = cursor_content.len() - (cursor.position()asusize);
658
+
if chunk_length > bytes_left {
659
+
// do NOT try to allocate massive buffer for `chunk_data` but instead fail early
660
+
returnErr(ReadError::Malformed(format!("Java-specific Snappy-compressed data has illegal chunk length, got {chunk_length} bytes but only {bytes_left} bytes are left.").into()));
0 commit comments