← Commit list

da8f7ae096

Joshua Rogers
Joshua Rogers
2025-10-05
FAILED Duration: 164s

Subject

telnet: print DISPlay LOCation in printsub without mutating buffer

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 →

lib/telnet.c+2 -2
@@ -759,8 +759,8 @@ static void printsub(struct Curl_easy *data,
switch(pointer[0]) {
case CURL_TELOPT_TTYPE:
case CURL_TELOPT_XDISPLOC:
- pointer[length] = 0;
- infof(data, " \"%s\"", &pointer[2]);
+ infof(data, " \"%.*s\"",
+ (int)((length > 2) ? (length - 2) : 0), &pointer[2]);
break;
case CURL_TELOPT_NEW_ENVIRON:
if(pointer[1] == CURL_TELQUAL_IS) {