Skip to content

Commit 663a1fa

Browse files
authored
chore: use read_exact in decompress_lz4 (#17055)
* chore: use read_exact in decompress_lz4 * tweak cargo audit
1 parent c60191a commit 663a1fa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.cargo/audit.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@ ignore = [
5151
"RUSTSEC-2024-0376",
5252
#rustls network-reachable panic in `Acceptor::accept`
5353
"RUSTSEC-2024-0399",
54+
# `idna` accepts Punycode labels that do not produce any non-ASCII when decoded
55+
"RUSTSEC-2024-0421",
5456
]

src/common/arrow/src/arrow/io/ipc/compression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use crate::arrow::error::Result;
1919
#[cfg_attr(docsrs, doc(cfg(feature = "io_ipc_compression")))]
2020
pub fn decompress_lz4(input_buf: &[u8], output_buf: &mut [u8]) -> Result<()> {
2121
use std::io::Read;
22-
let _ = lz4_flex::frame::FrameDecoder::new(input_buf).read(output_buf)?;
22+
lz4_flex::frame::FrameDecoder::new(input_buf).read_exact(output_buf)?;
2323
Ok(())
2424
}
2525

0 commit comments

Comments
 (0)