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

オープン
#16,731 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@binhvq がすでに取り組んでいます。

2026年11月20日 から。

  • #16732 @binhvq による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
24.4k
フォーク
2.2k
平均マージ
2日 23時間
マージ済み PR(30日)
402

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

uutils/coreutils のほかの issue

uutils/coreutils の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。