← Commit list

cba4a7580e

Joshua Rogers
Joshua Rogers
2026-09-17
SUCCESS Duration: 398s

Subject

tool_help: guard category[2] access when category is bare "-"

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

src/tool_help.c+1 -1
@@ -269,7 +269,7 @@ void tool_help(const char *category)
option */
a = NULL;
}
- else if(!category[2])
+ else if(category[1] && !category[2])
a = findshortopt(category[1]);
if(!a) {
curl_mfprintf(tool_stderr, "Incorrect option name to show help for,"