← Commit list

7d2382ebfa

Daniel Stenberg
Daniel Stenberg
2026-06-02
SUCCESS Duration: 252s

Subject

tool_help: rectify a bad assert

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+3 -2
@@ -166,8 +166,9 @@ void inithelpscan(struct scan_ctx *ctx,
ctx->flen = strlen(arg);
ctx->endarg = endarg;
ctx->elen = strlen(endarg);
- DEBUGASSERT((ctx->elen < sizeof(ctx->rbuf)) ||
- (ctx->flen < sizeof(ctx->rbuf)));
+ DEBUGASSERT((ctx->elen < sizeof(ctx->rbuf)) &&
+ (ctx->flen < sizeof(ctx->rbuf)) &&
+ (ctx->tlen < sizeof(ctx->rbuf)));
ctx->show = 0;
ctx->olen = 0;
memset(ctx->rbuf, 0, sizeof(ctx->rbuf));