You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cargo run seq 66000e000000000000000000000000000000000000000000000000000009223775807
thread 'main' panicked at src/uu/seq/src/numberparse.rs:114:21:
attempt to add with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
with GNU:
$ LANG=C /usr/bin/seq 66000e000000000000000000000000000000000000000000000000000009223
/usr/bin/seq: invalid floating point argument: '66000e000000000000000000000000000000000000000000000000000009223'
Same issue with -0.e9223372036854775807 - not sure it is the same issue
immediate crash
$ RUST_BACKTRACE=1 cargo run -q seq -0.e9223372036854775807
thread 'main' panicked at src/uu/seq/src/numberparse.rs:223:13:
attempt to add with overflow
stack backtrace:
0: rust_begin_unwind
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panicking.rs:72:14
2: core::panicking::panic
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panicking.rs:145:5
3: uu_seq::numberparse::parse_decimal_and_exponent
at ./src/uu/seq/src/numberparse.rs:223:13
4: uu_seq::numberparse::<impl core::str::traits::FromStr for uu_seq::number::PreciseNumber>::from_str
at ./src/uu/seq/src/numberparse.rs:333:44
5: core::str::<impl str>::parse
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/str/mod.rs:2428:9
6: uu_seq::uumain::uumain
at ./src/uu/seq/src/seq.rs:101:15
7: uu_seq::uumain
at ./src/uu/seq/src/seq.rs:50:1
8: coreutils::main
at ./src/bin/coreutils.rs:110:31
9: core::ops::function::FnOnce::call_once
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Activity
[-]seq: mismatch with GNU with long number[/-][+]`seq`: mismatch with GNU with long number[/+]ahmadabd commentedon May 7, 2024
I run
cargo run seq 66000e000000000000000000000000000000000000000000000000000009223775807but it does nothing, it just wait.dcampbell24 commentedon Jun 9, 2024
How long does it take to run with what cpu?
sylvestre commentedon Jul 8, 2024
Same issue with -0.e9223372036854775807 - not sure it is the same issue
immediate crash
found by oss fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68089
steinwand6 commentedon Nov 14, 2024
I would like to contribute. Would it be alright if I submit a pull request?
sylvestre commentedon Nov 14, 2024
of course :)
seq: remove ignore flag from test_invalid_float_point_fail_properly(u…
seq: remove ignore flag from test_invalid_float_point_fail_properly(u…
seq: add overflow checks when parsing exponents (#6858)