od: -j/-N/-S values above i64::MAX are not reported as too large

Đang mở
#16,731 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@binhvq đang làm issue này rồi.

Từ ngày 20/11/2026.

  • #16732 của @binhvq — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
cli

Hướng nghiên cứu

Start by reading the od argument parsing code and the j-overflow, N-overflow, and S-overflow cases in tests/od/od.pl. Check how decimal values above i64::MAX and hexadecimal values above u64 are parsed, then run the relevant od tests. Done means all three options report an argument-too-large error at parse time with exit status 1, matching GNU.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

U - od

GNU reports these at parse time with exit 1:

$ printf abcdef > f; od -j 9223372036854775808 f
od: -j argument '9223372036854775808' too large

$ od -N 9223372036854775808 f
od: -N argument '9223372036854775808' too large

$ od -S 9223372036854775808 f
od: -S argument '9223372036854775808' too large

uutils (main, GNU coreutils 9.12 used as reference) instead skips quietly — -j prints "od: cannot skip past end of combined input", -N dumps the whole input with exit 0, -S prints nothing with exit 0. A hex value past u64 such as 0x10000000000000000 is even reported as invalid rather than too large.

These are the j-overflow, N-overflow and S-overflow cases of tests/od/od.pl in the GNU tests run.

Ngôn ngữ chính
Rust
Star
24.4k
Fork
2.2k
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
402

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của uutils/coreutils

Tất cả issue của uutils/coreutils

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.