Skip to content

Commit 3d7e283

Browse files
committed
unexpand: save stack size
1 parent 717140a commit 3d7e283

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uu/unexpand/src/unexpand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ fn unexpand_file(
595595
}
596596

597597
fn unexpand(options: &Options) -> UResult<()> {
598-
let mut buf = [0u8; 128];
598+
let mut buf = vec![0u8; 128]; // stack spill with stack array and codegen-units=1 <https://github.com/rust-lang/rust/issues/148670>
599599
let mut output = BufWriter::new(stdout());
600600
let tab_config = &options.tab_config;
601601
let lastcol = if tab_config.tabstops.len() > 1

0 commit comments

Comments
 (0)