← Commit list

387b4c5e4c

Viktor Szakats
Viktor Szakats
2026-07-28
SUCCESS Duration: 191s

Subject

dnsd: fix bounds check in `read_https_alpn_part()`

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 →

tests/server/dnsd.c+1 -1
@@ -570,7 +570,7 @@ static int read_https_alpn_part(struct blob *b, struct Curl_str *str)
if(str->str[i] == ',')
break;
}
- if(i > 256)
+ if(i >= 256)
return 1;
if(blob_add(b, (uint8_t)i) || blob_addchars(b, str->str, i))
return 1;