Skip to content

od: diagnose too-large -j, -N and -S values - #16732

Open
binhvq wants to merge 1 commit into
uutils:mainfrom
binhvq:od-too-large-jns
Open

binhvq wants to merge 1 commit into
uutils:mainfrom
binhvq:od-too-large-jns

Conversation

@binhvq

@binhvq binhvq commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Values above i64::MAX were accepted: -j reported a skip error at runtime, -N dumped the whole input and -S printed nothing, while GNU rejects the value at parse time. A hex number past u64 was even reported as invalid instead of too large.

Reject the value in parse_bytes_option and turn a u64 overflow of a valid hex or octal number into the too-large error, echoing the flag the user actually gave.

Fixes #16731

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant