← Commit list

ea752b575c

Viktor Szakats
Viktor Szakats
2025-09-16
FAILED Duration: 145s

Subject

sws: fix checking `sscanf()` return value

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/sws.c+1 -1
@@ -330,7 +330,7 @@ static int sws_ProcessRequest(struct sws_httprequest *req)
size_t npath = 0; /* httppath length */
if(sscanf(line,
- "%" REQUEST_KEYWORD_SIZE_TXT"s ", request)) {
+ "%" REQUEST_KEYWORD_SIZE_TXT"s ", request) == 1) {
http = strstr(line + strlen(request), "HTTP/");
if(http && sscanf(http, "HTTP/%d.%d",