Skip to content

Be more resilient to garbage arguments passed to rocq check.#21910

Open
ppedrot wants to merge 1 commit intorocq-prover:masterfrom
ppedrot:fix-14937
Open

Be more resilient to garbage arguments passed to rocq check.#21910
ppedrot wants to merge 1 commit intorocq-prover:masterfrom
ppedrot:fix-14937

Conversation

@ppedrot
Copy link
Copy Markdown
Member

@ppedrot ppedrot commented Apr 9, 2026

We print a proper error rather than dying with an anomaly.

Fix #14397: coqchk should handle the empty string gracefully.

We print a proper error rather than dying with an anomaly.

Fix rocq-prover#14397: coqchk should handle the empty string gracefully.
@ppedrot ppedrot added this to the 9.3+rc1 milestone Apr 9, 2026
@ppedrot ppedrot requested a review from a team as a code owner April 9, 2026 17:38
@ppedrot ppedrot added kind: fix This fixes a bug or incorrect documentation. request: full CI Use this label when you want your next push to trigger a full CI. labels Apr 9, 2026
@coqbot-app coqbot-app bot removed the request: full CI Use this label when you want your next push to trigger a full CI. label Apr 9, 2026

let try_add_path s l = match path_of_string s with
| Ok path -> path :: l
| Error () -> CErrors.user_err (str "Invalid path " ++ qstring s)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not user_err directly in path_of_string?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hesitated to put a warning rather than an error, and written that way it makes it easy to replace it locally.

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

Labels

kind: fix This fixes a bug or incorrect documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

coqchk should handle the empty string gracefully

2 participants