Skip to content

Commit 45a1085

Browse files
committed
chore: use read_exact in decompress_lz4 (databendlabs#17055)
* chore: use read_exact in decompress_lz4 * tweak cargo audit
1 parent 8ffc26f commit 45a1085

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.cargo/audit.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,10 @@ ignore = [
4747
"RUSTSEC-2024-0351",
4848
# gix-path: improperly resolves configuration path reported by Git
4949
"RUSTSEC-2024-0371",
50+
# Remotely exploitable Denial of Service in Tonic, ignored temporarily
51+
"RUSTSEC-2024-0376",
52+
#rustls network-reachable panic in `Acceptor::accept`
53+
"RUSTSEC-2024-0399",
54+
# `idna` accepts Punycode labels that do not produce any non-ASCII when decoded
55+
"RUSTSEC-2024-0421",
5056
]

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)