cmp::parse_params exits the process on --help instead of returning
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
Research direction
Start at the cmp::parse_params entry point and inspect how the --help path is handled, then review the fuzz-target call that exposed the process exit. Reproduce the CI failure or run the relevant fuzz target. Done means callers can handle --help without the process being terminated.
Written by the indexing model from the issue text.
Description
When --help is passed to cmp::parse_params, it calls process::exit(0) which kills the whole process. Found this while working on the fuzz targets, the fuzzer kept crashing because of it.
Workaround is to filter --help before calling parse_params, but ideally the function should just return the help text instead of exiting.
Not sure if this is worth a bigger refactor or just leaving the workaround in place, open to suggestions.
Example CI failure: https://github.com/uutils/diffutils/actions/runs/24710862259
- Dominant language
- Rust
- Stars
- 276
- Forks
- 39
- Avg merge
- 3h 27m
- Merged PRs (30d)
- 3
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.
More from uutils/diffutils
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 64/100
All issues in uutils/diffutils
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100