uutils/coreutils

bug: split large -a number cause a panic

已关闭

#12,599 创建于 2026年6月4日

 (0 条评论) (0 个反应) (0 位负责人)Rust (1,981 个派生)batch import
U - splitgood first issue

仓库指标

星标
 (23,893 个星标)
PR 合并指标
 (平均合并 5天 23小时) (30 天内合并 239 个 PR)

描述

Hi, uutils mainateners

i tried

relunsec@relunsec:~/software/coreutils/target/debug$ ./split -a 66542562175252
memory allocation of 66542562175252 bytes failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted                    (core dumped) ./split -a 66542562175252

vs the gnu version behavior

relunsec@relunsec:~/software/coreutils/target/debug$ gnusplit -a 66542562175252

it does not panic but rust uutil version yees

贡献者指南