test_substr_large_length_capacity_overflow_issue12574 is failing
Closed
Beginner friendly
Nobody has claimed this yet.
U - expr
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
---- test_expr::test_substr_large_length_capacity_overflow_issue12574 stdout ----
bin: "/home/runner/work/coreutils/coreutils/target/wasm32-wasip1/debug/coreutils.wasm"
run: /home/runner/work/coreutils/coreutils/target/wasm32-wasip1/debug/coreutils.wasm expr substr abc 1 18446744073709551615
thread 'test_expr::test_substr_large_length_capacity_overflow_issue12574' (25800) panicked at tests/by-util/test_expr.rs:588:10:
Command was expected to succeed. code: 1
stdout =
stderr =
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/by-util/test_expr.rs around line 588 and run test_expr::test_substr_large_length_capacity_overflow_issue12574. Reproduce the expr substr abc 1 18446744073709551615 command in the WASM build, then trace why it exits with code 1 instead of succeeding. Done means the test passes with the expected command result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, wasm
- Domain
- cli, testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100